nvim lspconfig
This commit is contained in:
@@ -5,9 +5,6 @@
|
|||||||
[core]
|
[core]
|
||||||
editor = helix
|
editor = helix
|
||||||
pager = delta
|
pager = delta
|
||||||
; repositoryformatversion = 1
|
|
||||||
; [extensions]
|
|
||||||
; objectformat = sha256
|
|
||||||
[diff]
|
[diff]
|
||||||
tool = nvimdiff
|
tool = nvimdiff
|
||||||
algorithm = histogram
|
algorithm = histogram
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ d = ":toggle inline-diagnostics.cursor-line disable warning"
|
|||||||
D = ":toggle inline-diagnostics.other-lines disable error"
|
D = ":toggle inline-diagnostics.other-lines disable error"
|
||||||
l = ":lsp-stop"
|
l = ":lsp-stop"
|
||||||
L = ":lsp-restart"
|
L = ":lsp-restart"
|
||||||
A-l = ":run-shell-command lspmux reload"
|
A-l = ":run-shell-command systemctl --user restart lspmux.service"
|
||||||
|
|
||||||
# t = [":toggle cursorline", ":toggle line-number absolute relative"]
|
# t = [":toggle cursorline", ":toggle line-number absolute relative"]
|
||||||
# https://github.com/helix-editor/helix/issues/13187
|
# https://github.com/helix-editor/helix/issues/13187
|
||||||
|
|||||||
@@ -1,42 +1,43 @@
|
|||||||
return {
|
return {
|
||||||
settings = {
|
cmd = { "lspmux" },
|
||||||
["rust-analyzer"] = {
|
settings = {
|
||||||
cargo = {
|
["rust-analyzer"] = {
|
||||||
features = "all",
|
cargo = {
|
||||||
loadOutDirsFromCheck = true,
|
features = "all",
|
||||||
runBuildScripts = true,
|
loadOutDirsFromCheck = true,
|
||||||
},
|
runBuildScripts = true,
|
||||||
-- Add clippy lints for Rust.
|
},
|
||||||
checkOnSave = true,
|
-- Add clippy lints for Rust.
|
||||||
check = {
|
checkOnSave = true,
|
||||||
features = "all",
|
check = {
|
||||||
command = "clippy",
|
features = "all",
|
||||||
extraArgs = {
|
command = "clippy",
|
||||||
"--",
|
extraArgs = {
|
||||||
"--no-deps", -- run Clippy only on the given crate
|
"--",
|
||||||
-- Deny, Warn, Allow, Forbid
|
"--no-deps", -- run Clippy only on the given crate
|
||||||
"-Wclippy::correctness", -- code that is outright wrong or useless
|
-- Deny, Warn, Allow, Forbid
|
||||||
"-Wclippy::complexity", -- code that does something simple but in a complex way
|
"-Wclippy::correctness", -- code that is outright wrong or useless
|
||||||
"-Wclippy::suspicious", -- code that is most likely wrong or useless
|
"-Wclippy::complexity", -- code that does something simple but in a complex way
|
||||||
"-Wclippy::style", -- code that should be written in a more idiomatic way
|
"-Wclippy::suspicious", -- code that is most likely wrong or useless
|
||||||
"-Wclippy::perf", -- code that can be written to run faster
|
"-Wclippy::style", -- code that should be written in a more idiomatic way
|
||||||
"-Wclippy::pedantic", -- lints which are rather strict or have occasional false positives
|
"-Wclippy::perf", -- code that can be written to run faster
|
||||||
"-Wclippy::nursery", -- new lints that are still under development
|
"-Wclippy::pedantic", -- lints which are rather strict or have occasional false positives
|
||||||
"-Wclippy::cargo", -- lints for the cargo manifest
|
"-Wclippy::nursery", -- new lints that are still under development
|
||||||
-- Use in production
|
"-Wclippy::cargo", -- lints for the cargo manifest
|
||||||
"-Aclippy::restriction", -- lints which prevent the use of language and library features
|
-- Use in production
|
||||||
-- Other
|
"-Aclippy::restriction", -- lints which prevent the use of language and library features
|
||||||
"-Aclippy::must_use_candidate", -- must_use is rather annoing
|
-- Other
|
||||||
},
|
"-Aclippy::must_use_candidate", -- must_use is rather annoing
|
||||||
},
|
|
||||||
procMacro = {
|
|
||||||
enable = true,
|
|
||||||
-- ignored = {
|
|
||||||
-- ["async-trait"] = { "async_trait" },
|
|
||||||
-- ["napi-derive"] = { "napi" },
|
|
||||||
-- ["async-recursion"] = { "async_recursion" },
|
|
||||||
-- },
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
procMacro = {
|
||||||
|
enable = true,
|
||||||
|
-- ignored = {
|
||||||
|
-- ["async-trait"] = { "async_trait" },
|
||||||
|
-- ["napi-derive"] = { "napi" },
|
||||||
|
-- ["async-recursion"] = { "async_recursion" },
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
return {
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
event = "User LazyFile",
|
||||||
|
config = function()
|
||||||
|
local enabled = {
|
||||||
|
"lua_ls",
|
||||||
|
"bashls",
|
||||||
|
"tinymist",
|
||||||
|
"rust_analyzer",
|
||||||
|
"yamlls",
|
||||||
|
"clangd",
|
||||||
|
"jdtls",
|
||||||
|
"hyprls",
|
||||||
|
}
|
||||||
|
for _, name in ipairs(enabled) do
|
||||||
|
vim.lsp.enable(name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
-- event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
|
enabled = false,
|
||||||
event = "User LazyFile",
|
event = "User LazyFile",
|
||||||
dependencies = { -- load those first
|
dependencies = { -- load those first
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
program_options:
|
program_options:
|
||||||
tray: auto
|
tray: auto
|
||||||
automount: true
|
automount: false
|
||||||
notify: true
|
notify: true
|
||||||
password_cache: false
|
password_cache: false
|
||||||
file_manager: xdg-open
|
file_manager: xdg-open
|
||||||
|
|||||||
Reference in New Issue
Block a user