mirror of
https://github.com/Derisis13/dotfiles.git
synced 2025-12-07 03:42:50 +01:00
feat(neovim): hyprland language server and highlight
This commit is contained in:
@@ -9,5 +9,22 @@ local autocmd = vim.api.nvim_create_autocmd
|
|||||||
-- Auto unfold all when entering a buffer
|
-- Auto unfold all when entering a buffer
|
||||||
autocmd("BufWinEnter", { pattern = "*", command = "silent! :%foldopen!" })
|
autocmd("BufWinEnter", { pattern = "*", command = "silent! :%foldopen!" })
|
||||||
|
|
||||||
|
-- Hyrplang filetype
|
||||||
|
vim.filetype.add({
|
||||||
|
pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
|
||||||
|
})
|
||||||
|
-- Hyprlang LSP
|
||||||
|
autocmd({'BufEnter', 'BufWinEnter'}, {
|
||||||
|
pattern = {"*.hl", "hypr*.conf"},
|
||||||
|
callback = function(event)
|
||||||
|
print(string.format("starting hyprls for %s", vim.inspect(event)))
|
||||||
|
vim.lsp.start {
|
||||||
|
name = "hyprlang",
|
||||||
|
cmd = {"hyprls"},
|
||||||
|
root_dir = vim.fn.getcwd(),
|
||||||
|
}
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
vim.g.vscode_snippets_path = "~/.config/nvim/snippets"
|
vim.g.vscode_snippets_path = "~/.config/nvim/snippets"
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = true
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ return {
|
|||||||
-- shell
|
-- shell
|
||||||
"shellcheck",
|
"shellcheck",
|
||||||
|
|
||||||
|
-- Hyprlang
|
||||||
|
"hyrpls",
|
||||||
|
|
||||||
-- hdl
|
-- hdl
|
||||||
"rust_hdl",
|
"rust_hdl",
|
||||||
},
|
},
|
||||||
@@ -61,6 +64,7 @@ return {
|
|||||||
"python",
|
"python",
|
||||||
"latex",
|
"latex",
|
||||||
"vhdl",
|
"vhdl",
|
||||||
|
"hyprlang",
|
||||||
},
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user