delete extra lines
This commit is contained in:
@@ -317,7 +317,9 @@
|
||||
lsp-format.enable = true;
|
||||
|
||||
lsp = {
|
||||
inlayHints.enable = true;
|
||||
enable = true;
|
||||
inlayHints = true;
|
||||
|
||||
servers = {
|
||||
html.enable = true;
|
||||
lua_ls.enable = true;
|
||||
@@ -327,12 +329,14 @@
|
||||
pyright.enable = true;
|
||||
gopls.enable = true;
|
||||
terraformls.enable = true;
|
||||
ansiblels.enable = true;
|
||||
jsonls.enable = true;
|
||||
yamlls.enable = true;
|
||||
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
config = {
|
||||
installRustc = true;
|
||||
installCargo = true;
|
||||
settings = {
|
||||
cargo = {
|
||||
features = "all";
|
||||
};
|
||||
@@ -340,80 +344,68 @@
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "gd";
|
||||
lspBufAction = "definition";
|
||||
options.desc = "Goto Definition";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "gr";
|
||||
lspBufAction = "references";
|
||||
options.desc = "Goto References";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "gD";
|
||||
lspBufAction = "declaration";
|
||||
options.desc = "Goto Declaration";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "gI";
|
||||
lspBufAction = "implementation";
|
||||
options.desc = "Goto Implementation";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "gT";
|
||||
lspBufAction = "type_definition";
|
||||
options.desc = "Type Definition";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "K";
|
||||
lspBufAction = "hover { border = 'single' }";
|
||||
options.desc = "Hover";
|
||||
options.silent = true;
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "<leader>cw";
|
||||
keymaps = {
|
||||
silent = true;
|
||||
|
||||
lspBuf = {
|
||||
gd = {
|
||||
action = "definition";
|
||||
desc = "Goto Definition";
|
||||
};
|
||||
|
||||
gr = {
|
||||
action = "references";
|
||||
desc = "Goto References";
|
||||
};
|
||||
|
||||
gD = {
|
||||
action = "declaration";
|
||||
desc = "Goto Declaration";
|
||||
};
|
||||
|
||||
gI = {
|
||||
action = "implementation";
|
||||
desc = "Goto Implementation";
|
||||
};
|
||||
|
||||
gT = {
|
||||
action = "type_definition";
|
||||
desc = "Type Definition";
|
||||
};
|
||||
|
||||
K = {
|
||||
action = "hover";
|
||||
desc = "Hover";
|
||||
};
|
||||
|
||||
"<leader>cw" = {
|
||||
action = "workspace_symbol";
|
||||
options.desc = "Workspace Symbol";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "<leader>r";
|
||||
desc = "Workspace Symbol";
|
||||
};
|
||||
|
||||
"<leader>r" = {
|
||||
action = "rename";
|
||||
options.desc = "Rename variable";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "<leader>cd";
|
||||
desc = "Rename";
|
||||
};
|
||||
};
|
||||
|
||||
diagnostic = {
|
||||
"<leader>cd" = {
|
||||
action = "open_float";
|
||||
options.desc = "Line Diagnostics";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "]d";
|
||||
desc = "Line Diagnostics";
|
||||
};
|
||||
|
||||
"]d" = {
|
||||
action = "goto_next";
|
||||
options.desc = "Next Diagnostic";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
key = "[d";
|
||||
desc = "Next Diagnostic";
|
||||
};
|
||||
|
||||
"[d" = {
|
||||
action = "goto_prev";
|
||||
options.desc = "Previous Diagnostic";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
];
|
||||
desc = "Previous Diagnostic";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
neo-tree = {
|
||||
|
||||
Reference in New Issue
Block a user