feat(lsp): add ltex and keymaps
This commit is contained in:
parent
4bad814136
commit
b6ea6af1fb
2 changed files with 31 additions and 1 deletions
|
@ -8,7 +8,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
zsh.user
|
||||
./neovim
|
||||
./neovim.nix
|
||||
((import sources.nixvim).homeManagerModules.nixvim)
|
||||
];
|
||||
# options.kat = {
|
||||
|
|
|
@ -100,10 +100,40 @@ with lib;
|
|||
|
||||
lsp = mkIf config.kat.neovim.lsp {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
diagnostic = {
|
||||
"lj" = "goto_next";
|
||||
"lk" = "goto_prev";
|
||||
};
|
||||
lspBuf = {
|
||||
K = "hover";
|
||||
lgD = "references";
|
||||
lgd = "definition";
|
||||
lgi = "implementation";
|
||||
lgt = "type_definition";
|
||||
la = "code_action";
|
||||
ls = "signature_help";
|
||||
};
|
||||
extra = [
|
||||
{
|
||||
action = "<CMD>LspStop<Enter>";
|
||||
key = "lx";
|
||||
}
|
||||
{
|
||||
action = "<CMD>LspStart<Enter>";
|
||||
key = "ls";
|
||||
}
|
||||
{
|
||||
action = "<CMD>LspRestart<Enter>";
|
||||
key = "lr";
|
||||
}
|
||||
];
|
||||
};
|
||||
servers = {
|
||||
nixd.enable = true;
|
||||
pylsp.enable = true;
|
||||
clangd.enable = true;
|
||||
ltex.enable = true;
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
installCargo = true;
|
Loading…
Reference in a new issue