move lsp to own setting
This commit is contained in:
@@ -307,18 +307,7 @@
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
# LSP settings
|
||||||
lualine.enable = true;
|
|
||||||
lsp-lines.enable = true;
|
|
||||||
lsp-format.enable = true;
|
|
||||||
|
|
||||||
neo-tree = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# neo-tree dependency
|
|
||||||
web-devicons.enable = true;
|
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inlayHints = true;
|
inlayHints = true;
|
||||||
@@ -352,64 +341,89 @@
|
|||||||
lspBufAction = "definition";
|
lspBufAction = "definition";
|
||||||
desc = "Goto Definition";
|
desc = "Goto Definition";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "gr";
|
key = "gr";
|
||||||
lspBufAction = "references";
|
lspBufAction = "references";
|
||||||
desc = "Goto References";
|
desc = "Goto References";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "gD";
|
key = "gD";
|
||||||
lspBufAction = "declaration";
|
lspBufAction = "declaration";
|
||||||
desc = "Goto Declaration";
|
desc = "Goto Declaration";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "gI";
|
key = "gI";
|
||||||
lspBufAction = "implementation";
|
lspBufAction = "implementation";
|
||||||
desc = "Goto Implementation";
|
desc = "Goto Implementation";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "gT";
|
key = "gT";
|
||||||
lspBufAction = "type_definition";
|
lspBufAction = "type_definition";
|
||||||
desc = "Type Definition";
|
desc = "Type Definition";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "K";
|
key = "K";
|
||||||
lspBufAction = "hover";
|
lspBufAction = "hover";
|
||||||
desc = "Hover";
|
desc = "Hover";
|
||||||
options.silent = true;
|
options.silent = true;
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>cw";
|
key = "<leader>cw";
|
||||||
action = "workspace_symbol";
|
action = "workspace_symbol";
|
||||||
desc = "Workspace Symbol";
|
desc = "Workspace Symbol";
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>r";
|
key = "<leader>r";
|
||||||
action = "rename";
|
action = "rename";
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<leader>cd";
|
key = "<leader>cd";
|
||||||
action = "open_float";
|
action = "open_float";
|
||||||
desc = "Line Diagnostics";
|
desc = "Line Diagnostics";
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "]d";
|
key = "]d";
|
||||||
action = "goto_next";
|
action = "goto_next";
|
||||||
desc = "Next Diagnostic";
|
desc = "Next Diagnostic";
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "[d";
|
key = "[d";
|
||||||
action = "goto_prev";
|
action = "goto_prev";
|
||||||
desc = "Previous Diagnostic";
|
desc = "Previous Diagnostic";
|
||||||
|
mode = [ "n" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins = {
|
||||||
|
lualine.enable = true;
|
||||||
|
lsp-lines.enable = true;
|
||||||
|
lsp-format.enable = true;
|
||||||
|
|
||||||
|
neo-tree = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# neo-tree dependency
|
||||||
|
web-devicons.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cmp = {
|
cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoEnableSources = true;
|
autoEnableSources = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user