lsp
This commit is contained in:
14
lua/config/lsp.lua
Normal file
14
lua/config/lsp.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Load Neovim's LSP configuration module
|
||||
local lspconfig = require("vim.lsp.lspconfig")
|
||||
|
||||
-- Configure the Lua language server
|
||||
lspconfig.lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = { "vim" }, -- avoid warnings for Neovim globals
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -17,7 +17,7 @@ return {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
opts = {
|
||||
theme = 'tokyonight'
|
||||
theme = 'dawnfox'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
7
lua/plugins/lsp.lua
Normal file
7
lua/plugins/lsp.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
},
|
||||
-- { import = "config.lsp" },
|
||||
}
|
||||
|
||||
@@ -11,11 +11,9 @@ return {
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
highlight = { enable = true, },
|
||||
-- Integrate autotag with Treesitter
|
||||
autotag = { enable = true, },
|
||||
config = function(_, opts)
|
||||
autotag = { enable = true },
|
||||
},
|
||||
config = function(_, opts)
|
||||
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
||||
if ok then configs.setup(opts) end
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user