nvim/lua/plugins/lspconfig.lua

62 lines
1.4 KiB
Lua
Raw Normal View History

2023-12-14 03:49:45 -08:00
-- return {}
return {
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
-- -@type lspconfig.options
servers = {
2024-06-28 00:17:30 -07:00
nil_ls = {
mason = false,
settings = {
["nil"] = {
formatting = {
command = { "nixpkgs-fmt" },
},
},
},
},
2024-02-26 00:24:17 -08:00
lua_ls = {
mason = false,
},
2024-07-29 21:42:09 -07:00
-- rust_analyzer = {
-- mason = false,
-- settings = {
-- ["rust-analyzer"] = {
-- -- rustfmt = {
-- -- overrideCommand = { "leptosfmt", "--stdin", "--rustfmt" },
-- -- },
-- imports = {
-- granularity = {
-- group = "module",
-- },
-- },
-- cargo = {
-- buildScripts = {
-- enable = false,
-- },
-- },
-- files = {
-- excludeDirs = {
-- "pe-template",
-- },
-- },
-- procMacro = {
-- enable = true,
-- },
-- },
-- },
-- },
2023-12-14 03:49:45 -08:00
tailwindcss = {
init_options = {
userLanguages = {
rust = "html",
},
},
filetypes = { "rust" },
},
},
},
},
}