diff options
| author | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
|---|---|---|
| committer | cryxtalix <fgx8p9t@protonmail.com> | 2026-05-08 03:43:16 +0800 |
| commit | 1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 (patch) | |
| tree | 6842a96b396ada7003ec7ff7f3262a516be150b9 /.config/nvim_pack/lsp | |
| parent | 3a6553f64773aab5c81ee70ae0e1d57b5e448f64 (diff) | |
Update
Diffstat (limited to '.config/nvim_pack/lsp')
| -rw-r--r-- | .config/nvim_pack/lsp/bashls.lua | 0 | ||||
| -rw-r--r-- | .config/nvim_pack/lsp/clangd.lua | 0 | ||||
| -rw-r--r-- | .config/nvim_pack/lsp/lemminx.lua | 0 | ||||
| -rw-r--r-- | .config/nvim_pack/lsp/lua_ls.lua | 19 | ||||
| -rw-r--r-- | .config/nvim_pack/lsp/marksman.lua | 0 | ||||
| -rw-r--r-- | .config/nvim_pack/lsp/pyright.lua | 16 |
6 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim_pack/lsp/bashls.lua b/.config/nvim_pack/lsp/bashls.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim_pack/lsp/bashls.lua diff --git a/.config/nvim_pack/lsp/clangd.lua b/.config/nvim_pack/lsp/clangd.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim_pack/lsp/clangd.lua diff --git a/.config/nvim_pack/lsp/lemminx.lua b/.config/nvim_pack/lsp/lemminx.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim_pack/lsp/lemminx.lua diff --git a/.config/nvim_pack/lsp/lua_ls.lua b/.config/nvim_pack/lsp/lua_ls.lua new file mode 100644 index 0000000..c0a6d56 --- /dev/null +++ b/.config/nvim_pack/lsp/lua_ls.lua @@ -0,0 +1,19 @@ +return { + -- Command and arguments to start the server. + cmd = { 'lua-language-server' }, + -- Filetypes to automatically attach to. + filetypes = { 'lua' }, + -- Sets the "workspace" to the directory where any of these files is found. + -- Files that share a root directory will reuse the LSP server connection. + -- Nested lists indicate equal priority, see |vim.lsp.Config|. + root_markers = { { '.luarc.json', '.luarc.jsonc' }, '.git' }, + -- Specific settings to send to the server. The schema is server-defined. + -- Example: https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json + settings = { + Lua = { + runtime = { + version = 'LuaJIT', + } + } + } +} diff --git a/.config/nvim_pack/lsp/marksman.lua b/.config/nvim_pack/lsp/marksman.lua new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim_pack/lsp/marksman.lua diff --git a/.config/nvim_pack/lsp/pyright.lua b/.config/nvim_pack/lsp/pyright.lua new file mode 100644 index 0000000..aece9a7 --- /dev/null +++ b/.config/nvim_pack/lsp/pyright.lua @@ -0,0 +1,16 @@ +return { + cmd = { "pyright-langserver", "--stdio" }, + filetypes = { "python" }, + root_dir = function(filename) + return util.root_pattern(unpack(root_files))(filename) or util.path.dirname(filename) + end, + settings = { + python = { + analysis = { + autoSearchPaths = true, + diagnosticMode = "workspace", + useLibraryCodeForTypes = true + } + } + } +} |
