nix/modules/home/cli/neovim/plugins/lsp.lua

58 lines
1.1 KiB
Lua
Raw Normal View History

2024-03-09 17:18:36 +01:00
require("mason").setup{
PATH = "append",
}
require("mason-lspconfig").setup()
require('neodev').setup()
2024-04-15 15:06:07 +02:00
require('lsp-inlayhints').setup()
2024-03-09 17:18:36 +01:00
local lspconfig = require('lspconfig')
vim.g.rustaceanvim = {
tools = {
hover_actions = {
auto_focus = true,
},
},
server = {
on_attach = function(client, bufnr)
require("lsp-inlayhints").on_attach(client, bufnr)
2024-04-15 15:06:07 +02:00
require("lsp-inlayhints").show()
2024-03-09 17:18:36 +01:00
end,
2024-04-07 19:15:16 +02:00
default_settings = {
['rust-analyzer'] = {
cargo = {
2024-05-21 10:58:33 +02:00
features = "all"
2024-04-07 19:15:16 +02:00
},
},
},
2024-03-09 17:18:36 +01:00
},
}
lspconfig.tsserver.setup{}
2024-03-26 19:18:28 +01:00
lspconfig.spyglassmc_language_server.setup{
cmd = {
"/home/xeovalyte/.npm-global/bin/spyglassmc-language-server", "--stdio"
}
}
2024-03-09 17:18:36 +01:00
lspconfig.arduino_language_server.setup{
cmd = {
"steam-run","arduino-language-server",
"-cli-config", "/home/xeovalyte/.arduino15/arduino-cli.yaml",
"-cli", "/usr/bin/arduino-cli",
"-clangd", "steam-run clangd"
}
}
2024-05-21 10:58:33 +02:00
lspconfig.tailwindcss.setup{
filetypes = {
"rust",
"css",
}
}
2024-03-09 17:18:36 +01:00
lspconfig.volar.setup{}
lspconfig.marksman.setup{}