diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 11e35354..b3a38f80 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -143,57 +143,59 @@ return { -- LSP Configuration & Plugins -- - capabilities (table): Override fields in capabilities. Can be used to disable certain LSP features. -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ - local servers = { - clangd = { - cmd = { - 'clangd', - '--background-index', - '--offset-encoding=utf-16', - }, - }, - -- gopls = {}, - pyright = {}, - deno = {}, - ruff = {}, - -- rust_analyzer = {}, - -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs - -- - -- Some languages (like typescript) have entire language plugins that can be useful: - -- https://github.com/pmizio/typescript-tools.nvim - -- - -- But for many setups, the LSP (`tsserver`) will work just fine - tsserver = { - init_options = { - preferences = { - disableSuggestions = true, + local servers = + { + clangd = { + cmd = { + 'clangd', + '--background-index', + '--offset-encoding=utf-16', }, }, - }, - -- + -- gopls = {}, + pyright = {}, + deno = {}, + ruff = {}, - lua_ls = { - -- cmd = {...}, - -- filetypes = { ...}, - -- capabilities = {}, - settings = { - Lua = { - completion = { - callSnippet = 'Replace', + -- rust_analyzer = {}, + -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs + -- + -- Some languages (like typescript) have entire language plugins that can be useful: + -- https://github.com/pmizio/typescript-tools.nvim + -- + -- But for many setups, the LSP (`tsserver`) will work just fine + tsserver = { + init_options = { + preferences = { + disableSuggestions = true, + }, + }, + }, + + -- + + lua_ls = { + -- cmd = {...}, + -- filetypes = { ...}, + -- capabilities = {}, + settings = { + Lua = { + completion = { + callSnippet = 'Replace', + }, + -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings + -- diagnostics = { disable = { 'missing-fields' } }, }, - -- You can toggle below to ignore Lua_LS's noisy `missing-fields` warnings - -- diagnostics = { disable = { 'missing-fields' } }, }, }, }, - } - - -- Ensure the servers and tools above are installed - -- To check the current status of installed tools and/or manually install - -- other tools, you can run - -- :Mason - -- - -- You can press `g?` for help in this menu. - require('mason').setup() + -- Ensure the servers and tools above are installed + -- To check the current status of installed tools and/or manually install + -- other tools, you can run + -- :Mason + -- + -- You can press `g?` for help in this menu. + require('mason').setup() -- You can add other tools here that you want Mason to install -- for you, so that they are available from within Neovim. diff --git a/lua/kickstart/plugins/lint.lua b/lua/kickstart/plugins/lint.lua index 4e0f97c9..3f5ddb3a 100644 --- a/lua/kickstart/plugins/lint.lua +++ b/lua/kickstart/plugins/lint.lua @@ -11,7 +11,7 @@ return { -- c = { 'cppcheck' }, javascript = { 'eslint' }, css = { 'stylelint' }, - html = { 'tidy' }, + html = { 'djlint' }, } -- To allow other plugins to add linters to require('lint').linters_by_ft,