mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-12 20:41:16 +02:00
nvim: added rust support
This commit is contained in:
@@ -45,7 +45,7 @@ return {
|
||||
"yamlfmt",
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
opts = { ui = { icons = Install_signs } }
|
||||
}
|
||||
|
@@ -1,18 +1,23 @@
|
||||
return {
|
||||
-- lang server management
|
||||
{
|
||||
'neovim/nvim-lspconfig',
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
{
|
||||
'hrsh7th/cmp-nvim-lsp',
|
||||
"mrcjkb/rustaceanvim",
|
||||
version = "^6",
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
config = function()
|
||||
Capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||
Capabilities.textDocument.foldingRange = {
|
||||
dynamicRegistration = false,
|
||||
lineFoldingOnly = true
|
||||
lineFoldingOnly = true,
|
||||
}
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
@@ -36,14 +41,14 @@ return {
|
||||
"texlab",
|
||||
-- "tsserver",
|
||||
"yamlls",
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
local servers = {
|
||||
lua_ls = {
|
||||
Lua = {
|
||||
lua = {
|
||||
diagnostics = {
|
||||
globals = { 'vim' }
|
||||
globals = { "vim" },
|
||||
},
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
@@ -53,10 +58,14 @@ return {
|
||||
-- language = "de-DE",
|
||||
enabled = { "latex" },
|
||||
dictionary = Dictionaries,
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
local default = {
|
||||
__index = function()
|
||||
return {}
|
||||
end,
|
||||
}
|
||||
local default = { __index = function() return {} end }
|
||||
setmetatable(servers, default)
|
||||
-- require("mason-lspconfig").setup_handlers({
|
||||
-- function(server_name)
|
||||
@@ -70,6 +79,6 @@ return {
|
||||
-- })
|
||||
-- end
|
||||
-- })
|
||||
end
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ return {
|
||||
"markdown_inline",
|
||||
"latex",
|
||||
"python",
|
||||
"rust",
|
||||
"lua",
|
||||
},
|
||||
-- highlight = { enable = true },
|
||||
|
Reference in New Issue
Block a user