lazy-nvim migration with basic plugins
This commit is contained in:
parent
b02e4dda6c
commit
e2a8848a27
7 changed files with 109 additions and 75 deletions
28
.config/nvim/lua/plugins/lsp.lua
Normal file
28
.config/nvim/lua/plugins/lsp.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"hrsh7th/nvim-cmp",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
},
|
||||
lazy = false,
|
||||
config = function()
|
||||
local nvim_lsp = require("lspconfig")
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
nvim_lsp.lua_ls.setup({
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { 'vim' },
|
||||
},
|
||||
workspace = {
|
||||
library = vim.api.nvim_get_runtime_file("", true),
|
||||
checkThirdParty = false
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue