diff options
| author | eltrac <hi@eltr.ac> | 2026-11-08 21:01:41 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-11-08 21:05:06 +0800 |
| commit | 64560eb91743a827c78d525858a0c43adef6f548 (patch) | |
| tree | d4ced922936f0df483e9a5e21d455ed7c6f6dd1d /nvim/fnl/plugins/nvim-lspconfig.fnl | |
| parent | 449d3c50efccbb806eea313fac45d2fb25d6b7ca (diff) | |
Diffstat (limited to 'nvim/fnl/plugins/nvim-lspconfig.fnl')
| m--------- | nvim | 0 | ||||
| -rw-r--r-- | nvim/fnl/plugins/nvim-lspconfig.fnl | 48 |
2 files changed, 48 insertions, 0 deletions
diff --git a/nvim b/nvim deleted file mode 160000 -Subproject d2e1e6a0d60cf427a8a56c0caf57c8ec60a8e36 diff --git a/nvim/fnl/plugins/nvim-lspconfig.fnl b/nvim/fnl/plugins/nvim-lspconfig.fnl new file mode 100644 index 0000000..1c38cf3 --- /dev/null +++ b/nvim/fnl/plugins/nvim-lspconfig.fnl @@ -0,0 +1,48 @@ +[{1 :neovim/nvim-lspconfig + :config (fn [] + (local lsps [:gopls + :marksman + :ts_ls + :vue_ls + :cssls + :html + :unocss + :clojure_lsp + :ruff + :ty + :tinymist + :fennel_ls + :ltex]) + ((. (require :mason-lspconfig) :setup) {:ensure_installed lsps}) + (vim.lsp.config :lua_ls + {:settings {:Lua {:diagnostics {:globals [:vim]}}}}) + (local vue-language-server-path + (.. (vim.fn.expand :$MASON/packages) :/vue-language-server + "/node_modules/@vue/language-server")) + (local tsserver-filetypes + [:typescript + :javascript + :javascriptreact + :typescriptreact + :vue]) + (local vue-plugin + {:configNamespace :typescript + :languages [:vue] + :location vue-language-server-path + :name "@vue/typescript-plugin"}) + (local ts-ls-config + {:filetypes tsserver-filetypes + :init_options {:plugins [vue-plugin]}}) + (local vue-ls-config {}) + (local ltex-ls-config + {:settings {:ltex {:dictionary {:en-US [:Neovim :LSP :ltex-ls :Lua] + :zh-CN [:Neovim :LSP :ltex-ls :Lua]} + :disabledRules {:zh-CN [:EN_QUOTES]} + :language :zh-CN}}}) + (vim.lsp.config :vue_ls vue-ls-config) + (vim.lsp.config :ts_ls ts-ls-config) + (vim.lsp.config :ltex ltex-ls-config) + (vim.lsp.enable lsps)) + :dependencies [:mason-org/mason.nvim + :mason-org/mason-lspconfig.nvim]}] + |
