gitsigns, vim opts, restructure

This commit is contained in:
Zacharias-Brohn
2025-02-06 13:49:35 +01:00
parent c894fa32a7
commit 50b00eb8b6
10 changed files with 294 additions and 116 deletions
+3 -18
View File
@@ -103,24 +103,9 @@ local servers = {
}
lspconfig.hyprls.setup {
on_attach = nvlsp.on_attach,
root_dir = function( fname )
local root_files = {
'hyprland.conf',
'hypridle.conf',
'hyprlock.conf',
'hyprpaper.conf',
'hyprshade.conf',
}
local util = require 'lspconfig/util'
local root = util.root_pattern(unpack(root_files))(fname) or util.path.dirname(fname)
if root and string.match( root, '~/.config/hypr/' ) then
return root
else
return nil
end
end,
filetypes = { 'conf' },
root_dir = vim.fs.root( 0, 'hyprland.conf' ),
single_file_support = false,
filetypes = { "conf" },
}
-- lsps with default config