Switch from nvm to fnm, add lsps to nvim
This commit is contained in:
@@ -97,6 +97,11 @@ return {
|
||||
})
|
||||
end
|
||||
|
||||
-- Disable ruff hovers in favor of pyright
|
||||
if client and client.name == 'ruff' then
|
||||
client.server_capabilities.hoverProvider = false
|
||||
end
|
||||
|
||||
-- The following code creates a keymap to toggle inlay hints in your
|
||||
-- code, if the language server you are using supports them
|
||||
--
|
||||
@@ -126,19 +131,17 @@ return {
|
||||
-- - 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 = {},
|
||||
-- gopls = {},
|
||||
-- pyright = {},
|
||||
-- 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 (`ts_ls`) will work just fine
|
||||
-- ts_ls = {},
|
||||
--
|
||||
-- C++
|
||||
clangd = {},
|
||||
|
||||
-- python
|
||||
pyright = {},
|
||||
ruff = {},
|
||||
|
||||
-- rust
|
||||
rust_analyzer = {},
|
||||
|
||||
-- lua
|
||||
lua_ls = {
|
||||
-- cmd = {...},
|
||||
-- filetypes = { ...},
|
||||
|
||||
Reference in New Issue
Block a user