nvim lspconfig
This commit is contained in:
@@ -5,9 +5,6 @@
|
||||
[core]
|
||||
editor = helix
|
||||
pager = delta
|
||||
; repositoryformatversion = 1
|
||||
; [extensions]
|
||||
; objectformat = sha256
|
||||
[diff]
|
||||
tool = nvimdiff
|
||||
algorithm = histogram
|
||||
|
||||
@@ -230,7 +230,7 @@ d = ":toggle inline-diagnostics.cursor-line disable warning"
|
||||
D = ":toggle inline-diagnostics.other-lines disable error"
|
||||
l = ":lsp-stop"
|
||||
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"]
|
||||
# https://github.com/helix-editor/helix/issues/13187
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
return {
|
||||
cmd = { "lspmux" },
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
cargo = {
|
||||
|
||||
@@ -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 {
|
||||
"mason-org/mason-lspconfig.nvim",
|
||||
-- event = "BufReadPre",
|
||||
enabled = false,
|
||||
event = "User LazyFile",
|
||||
dependencies = { -- load those first
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
program_options:
|
||||
tray: auto
|
||||
automount: true
|
||||
automount: false
|
||||
notify: true
|
||||
password_cache: false
|
||||
file_manager: xdg-open
|
||||
|
||||
Reference in New Issue
Block a user