🪴 my neovim config:)
1
fork

Configure Feed

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

fix(config/ivy/plugins/lsp): remove `py_lsp` and `typescript-tools`

robin 62c84169 bf832843

-57
-57
config/lua/ivy/plugins/lsp.lua
··· 82 82 83 83 { "lsp-status.nvim" }, 84 84 { "schemastore.nvim" }, 85 - { "py_lsp.nvim" }, 86 - { "typescript-tools.nvim" }, 87 85 88 86 { 89 87 "nvim-lspconfig", ··· 93 91 "blink.cmp", 94 92 "lsp-status.nvim", 95 93 "schemastore.nvim", 96 - "py_lsp.nvim", 97 - "typescript-tools.nvim", 98 94 }) 99 95 100 96 local lsp_present, lspconfig = pcall(require, "lspconfig") ··· 168 164 local capabilities = require("blink.cmp").get_lsp_capabilities({}, true) 169 165 170 166 local common = { capabilities = capabilities } 171 - 172 - -- setup python 173 - pcall(require("py_lsp").setup, common) 174 - 175 - require("typescript-tools").setup({ 176 - single_file_support = false, 177 - root_dir = function(fname) 178 - local root_dir = lspconfig.util.root_pattern("package.json", "tsconfig.json")(fname) 179 - 180 - -- this is needed to make sure we don't pick up root_dir inside node_modules 181 - local node_modules_index = root_dir and root_dir:find("node_modules", 1, true) 182 - if node_modules_index and node_modules_index > 0 then 183 - ---@diagnostic disable-next-line: need-check-nil 184 - root_dir = root_dir:sub(1, node_modules_index - 2) 185 - end 186 - 187 - return root_dir 188 - end, 189 - settings = { 190 - expose_as_code_action = { 191 - "add_missing_imports", 192 - "fix_all", 193 - "remove_unused", 194 - }, 195 - tsserver_path = vim.fn.resolve( 196 - vim.fn.exepath("tsserver") .. "/../../lib/node_modules/typescript/bin/tsserver" 197 - ), 198 - typescript = { 199 - inlayHints = { 200 - includeInlayParameterNameHints = "all", 201 - includeInlayParameterNameHintsWhenArgumentMatchesName = true, 202 - includeInlayFunctionParameterTypeHints = true, 203 - includeInlayVariableTypeHints = true, 204 - includeInlayVariableTypeHintsWhenTypeMatchesName = true, 205 - includeInlayPropertyDeclarationTypeHints = true, 206 - includeInlayFunctionLikeReturnTypeHints = true, 207 - includeInlayEnumMemberValueHints = true, 208 - }, 209 - }, 210 - javascript = { 211 - inlayHints = { 212 - includeInlayParameterNameHints = "all", 213 - includeInlayParameterNameHintsWhenArgumentMatchesName = true, 214 - includeInlayFunctionParameterTypeHints = true, 215 - includeInlayVariableTypeHints = true, 216 - includeInlayVariableTypeHintsWhenTypeMatchesName = true, 217 - includeInlayPropertyDeclarationTypeHints = true, 218 - includeInlayFunctionLikeReturnTypeHints = true, 219 - includeInlayEnumMemberValueHints = true, 220 - }, 221 - }, 222 - }, 223 - }) 224 167 225 168 local servers = { 226 169 astro = {},