neovim
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

migrate from old lspconfig method

+26 -28
+2
candy/ftplugin/nix.lua
··· 10 10 vim.opt.softtabstop = tab_width 11 11 vim.opt.makeprg = "statix check -o errfmt" 12 12 vim.opt.errorformat = "%f>%l:%c:%t:%n:%m" 13 + 14 + vim.lsp.enable("nil_ls")
+24 -28
candy/lua/marshmallow/lsp.lua
··· 1 1 require("fidget").setup({}) 2 2 3 - local lspconfig = require("lspconfig") 4 3 local group = vim.api.nvim_create_augroup("marsh-lsp", {}) 5 4 6 5 vim.api.nvim_create_autocmd("LspAttach", { ··· 28 27 end, 29 28 }) 30 29 31 - lspconfig.lua_ls.setup({ 32 - settings = { 33 - Lua = { 34 - format = { 35 - enable = false, 36 - }, 37 - runtime = { version = "LuaJIT" }, 38 - workspace = { checkThirdParty = false }, 39 - telemetry = { enable = false }, 40 - diagnostics = { globals = { "vim" } }, 41 - completion = { 42 - callSnippet = "Replace", 43 - }, 44 - }, 45 - }, 46 - }) 47 - 48 - lspconfig.tailwindcss.setup({ 30 + vim.lsp.config("tailwindcss", { 49 31 settings = { 50 32 tailwindCSS = { 51 33 experimental = { ··· 58 40 }, 59 41 }) 60 42 61 - lspconfig.astro.setup({}) 62 - lspconfig.nil_ls.setup({}) 63 - lspconfig.gopls.setup({}) 64 - lspconfig.golangci_lint_ls.setup({}) 65 - lspconfig.pyright.setup({}) 66 - lspconfig.tinymist.setup({}) 67 - 68 43 -- Boilerplate from https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#lua_ls 69 - lspconfig.lua_ls.setup({ 44 + vim.lsp.config("lua_ls", { 70 45 on_init = function(client) 71 46 local path = client.workspace_folders[1].name 72 47 if vim.loop.fs_stat(path .. "/.luarc.json") or vim.loop.fs_stat(path .. "/.luarc.jsonc") then ··· 91 66 }) 92 67 end, 93 68 settings = { 94 - Lua = {}, 69 + Lua = { 70 + format = { 71 + enable = false, 72 + }, 73 + runtime = { version = "LuaJIT" }, 74 + workspace = { checkThirdParty = false }, 75 + telemetry = { enable = false }, 76 + diagnostics = { globals = { "vim" } }, 77 + completion = { 78 + callSnippet = "Replace", 79 + }, 80 + }, 95 81 }, 96 82 }) 97 83 ··· 114 100 }, 115 101 }, 116 102 }) 103 + 104 + vim.lsp.enable({ 105 + "tailwindcss", 106 + "astro", 107 + "nil_ls", 108 + "gopls", 109 + "golangci_lint_ls", 110 + "pyright", 111 + "tinymist", 112 + })