From 30c84977cbde9db090a496a298dded24542da124 Mon Sep 17 00:00:00 2001 From: Thomas Sindt Date: Tue, 10 Mar 2026 23:47:39 +0100 Subject: [PATCH] lsp --- lazy-lock.json | 1 + lua/config/lsp.lua | 14 ++++++++++++++ lua/plugins/colors.lua | 2 +- lua/plugins/lsp.lua | 7 +++++++ lua/plugins/treesitter.lua | 8 +++----- 5 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 lua/config/lsp.lua create mode 100644 lua/plugins/lsp.lua diff --git a/lazy-lock.json b/lazy-lock.json index 196ee56..abdb5e9 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,6 +2,7 @@ "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, + "nvim-lspconfig": { "branch": "master", "commit": "d8bf4c47385340ab2029402201d4d7c9f99f437a" }, "nvim-treesitter": { "branch": "main", "commit": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c" }, "nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua new file mode 100644 index 0000000..2caa176 --- /dev/null +++ b/lua/config/lsp.lua @@ -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 + }, + }, + }, +}) + diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua index 3b68ce3..b7d27d4 100644 --- a/lua/plugins/colors.lua +++ b/lua/plugins/colors.lua @@ -17,7 +17,7 @@ return { "nvim-tree/nvim-web-devicons", }, opts = { - theme = 'tokyonight' + theme = 'dawnfox' }, }, } diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..4d91ec7 --- /dev/null +++ b/lua/plugins/lsp.lua @@ -0,0 +1,7 @@ +return { + { + "neovim/nvim-lspconfig", + }, +-- { import = "config.lsp" }, +} + diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 7750cb8..c574abd 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -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,