Compare commits

..

4 Commits

Author SHA1 Message Date
4f8f4f9498 languagetool 2023-12-01 21:06:12 +01:00
f352a1e05f nixd 2023-12-01 20:51:43 +01:00
cb63c50f0e typst vim support 2023-12-01 20:46:43 +01:00
c9325634e6 rzk 2023-12-01 20:46:27 +01:00

View File

@ -7,6 +7,7 @@ let username = "rachel";
export PATH="${hpkgs.haskell-language-server}/bin:$PATH" export PATH="${hpkgs.haskell-language-server}/bin:$PATH"
exec ${hpkgs.haskell-language-server}/bin/haskell-language-server-wrapper "$@" exec ${hpkgs.haskell-language-server}/bin/haskell-language-server-wrapper "$@"
''; '';
rzk = hpkgs.rzk;
in in
{ {
home = { home = {
@ -81,6 +82,7 @@ in
idris2 idris2
prismlauncher prismlauncher
vimv vimv
rzk
]; ];
stateVersion = "23.11"; stateVersion = "23.11";
}; };
@ -165,6 +167,18 @@ in
lspcfg.pyright.setup({ lspcfg.pyright.setup({
cmd = { '${pkgs.nodePackages.pyright}/bin/pyright-langserver', '--stdio' }, cmd = { '${pkgs.nodePackages.pyright}/bin/pyright-langserver', '--stdio' },
}) })
lspcfg.nixd.setup({
cmd = { '${pkgs.nixd}/bin/nixd' },
})
lspcfg.ltex.setup({
cmd = { '${pkgs.ltex-ls}/bin/ltex-ls' },
filetypes = { 'bib', 'gitcommit', 'markdown', 'plaintext', 'tex', 'pandoc', 'typst' },
settings = {
ltex = {
language = 'sv'
}
}
})
vim.api.nvim_create_autocmd('LspAttach', { vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args) callback = function(args)
@ -192,6 +206,17 @@ in
vim.diagnostic.enable(args.buf) vim.diagnostic.enable(args.buf)
end end
}) })
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = { "*.rzk" },
callback = function(arg)
vim.lsp.start({
name = 'rzk-lsp',
cmd = { "${rzk}/bin/rzk", "lsp" },
root_dir = vim.fs.dirname(vim.fs.find('rzk.yaml', { upward = true })[1]),
})
end
})
''; '';
extraConfig = '' extraConfig = ''
set rnu nu set rnu nu
@ -245,6 +270,7 @@ in
nvim-lspconfig nvim-lspconfig
idris2-vim idris2-vim
numb-nvim numb-nvim
typst-vim
]; ];
}; };