80 lines
2.1 KiB
Lua
80 lines
2.1 KiB
Lua
-- return {}
|
|
return {
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
---@class PluginLspOpts
|
|
opts = {
|
|
-- -@type lspconfig.options
|
|
servers = {
|
|
nil_ls = {
|
|
mason = false,
|
|
settings = {
|
|
["nil"] = {
|
|
formatting = {
|
|
command = { "nixpkgs-fmt" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
-- nixd = {
|
|
-- mason = false,
|
|
-- settings = {
|
|
-- nixpkgs = {
|
|
-- 'import (builtins.getFlake "/home/lyc/workspace/CS/OS/NixOS/flakes").inputs.nixpkgs { }',
|
|
-- },
|
|
-- formatting = {
|
|
-- command = { "nixpkgs-fmt" },
|
|
-- },
|
|
-- options = {
|
|
-- nixos = {
|
|
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options',
|
|
-- },
|
|
-- home_manager = {
|
|
-- expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options',
|
|
-- },
|
|
-- },
|
|
-- },
|
|
-- },
|
|
lua_ls = {
|
|
mason = false,
|
|
},
|
|
-- 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,
|
|
-- },
|
|
-- },
|
|
-- },
|
|
-- },
|
|
tailwindcss = {
|
|
init_options = {
|
|
userLanguages = {
|
|
rust = "html",
|
|
},
|
|
},
|
|
filetypes = { "rust" },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|