lsp
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
|
||||||
"nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
"nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "d8bf4c47385340ab2029402201d4d7c9f99f437a" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c" },
|
"nvim-treesitter": { "branch": "main", "commit": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" },
|
"nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
|||||||
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",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
opts = {
|
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,
|
auto_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
},
|
autotag = { enable = true },
|
||||||
highlight = { enable = true, },
|
},
|
||||||
-- Integrate autotag with Treesitter
|
config = function(_, opts)
|
||||||
autotag = { enable = true, },
|
|
||||||
config = function(_, opts)
|
|
||||||
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
||||||
if ok then configs.setup(opts) end
|
if ok then configs.setup(opts) end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user