mirror of https://github.com/LazyVim/starter
Adding some lsp changes.
parent
7558e2e529
commit
1e163a9099
|
@ -2,6 +2,13 @@ return {
|
||||||
-- add any tools you want to have installed below
|
-- add any tools you want to have installed below
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
|
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
require("mason-lspconfig").setup({
|
||||||
|
ensure_installed = { "lua_ls" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"stylua",
|
"stylua",
|
||||||
|
@ -11,4 +18,22 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
config = function()
|
||||||
|
require("lspconfig").lua_ls.setup({
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
diagnostics = {
|
||||||
|
globals = { "vim" }, -- Avoid "undefined global 'vim'"
|
||||||
|
},
|
||||||
|
workspace = {
|
||||||
|
library = vim.api.nvim_get_runtime_file("", true),
|
||||||
|
},
|
||||||
|
telemetry = { enable = false },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ return {
|
||||||
build = "make",
|
build = "make",
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").load_extension("fzf")
|
require("telescope").load_extension("fzf")
|
||||||
|
require("telescope.builtin").live_grep({ search_dirs = { "~/.ssh/known_hosts" } })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,10 +2,11 @@ return {
|
||||||
-- amongst your other plugins
|
-- amongst your other plugins
|
||||||
-- { "akinsho/toggleterm.nvim", version = "*", config = true },
|
-- { "akinsho/toggleterm.nvim", version = "*", config = true },
|
||||||
-- or
|
-- or
|
||||||
{'akinsho/toggleterm.nvim',
|
{
|
||||||
|
'akinsho/toggleterm.nvim',
|
||||||
version = "*",
|
version = "*",
|
||||||
opts = {--[[ things you want to change go here]]
|
opts = {--[[ things you want to change go here]]
|
||||||
direction = "horiztonal",
|
direction = "vertical",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local toggleterm = require('toggleterm')
|
local toggleterm = require('toggleterm')
|
||||||
|
@ -19,6 +20,6 @@ return {
|
||||||
nnoremap <silent><c-t> <Cmd>exe v:count1 . "ToggleTerm"<CR>
|
nnoremap <silent><c-t> <Cmd>exe v:count1 . "ToggleTerm"<CR>
|
||||||
inoremap <silent><c-t> <Esc><Cmd>exe v:count1 . "ToggleTerm"<CR>
|
inoremap <silent><c-t> <Esc><Cmd>exe v:count1 . "ToggleTerm"<CR>
|
||||||
]]
|
]]
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue