[feat] Use telescope for lsp definitions
This commit is contained in:
@@ -125,6 +125,7 @@ in
|
|||||||
yy = "yazi";
|
yy = "yazi";
|
||||||
cd = "z";
|
cd = "z";
|
||||||
ls = "eza";
|
ls = "eza";
|
||||||
|
cat = "bat";
|
||||||
t = "${start-tmux}";
|
t = "${start-tmux}";
|
||||||
};
|
};
|
||||||
shellAliases = { g = "git"; };
|
shellAliases = { g = "git"; };
|
||||||
@@ -144,6 +145,7 @@ in
|
|||||||
cd = "z";
|
cd = "z";
|
||||||
yy = "yazi";
|
yy = "yazi";
|
||||||
nv = "neovide";
|
nv = "neovide";
|
||||||
|
cat = "bat";
|
||||||
};
|
};
|
||||||
package = pkgs.nushellFull;
|
package = pkgs.nushellFull;
|
||||||
configFile.text = ''
|
configFile.text = ''
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
nvim-dap.enable = true;
|
nvim-dap.enable = true;
|
||||||
todo-comments.enable = true;
|
todo-comments.enable = true;
|
||||||
lualine = { enable = true; };
|
lualine.enable = true;
|
||||||
commentary.enable = true;
|
commentary.enable = true;
|
||||||
surround.enable = true;
|
surround.enable = true;
|
||||||
which-key.enable = true;
|
which-key.enable = true;
|
||||||
@@ -128,13 +128,15 @@
|
|||||||
"<leader>\\\"" = ''[["+]]'';
|
"<leader>\\\"" = ''[["+]]'';
|
||||||
"vff" = "[[<cmd>vertical Gdiffsplit<cr>]]";
|
"vff" = "[[<cmd>vertical Gdiffsplit<cr>]]";
|
||||||
"<C-k>" = "vim.lsp.buf.definition";
|
"<C-k>" = "vim.lsp.buf.definition";
|
||||||
"gi" = "vim.lsp.buf.implementation";
|
"gi" = "require'telescope.builtin'.lsp_incoming_calls";
|
||||||
"<leader>a" = "vim.lsp.buf.code_action";
|
"<leader>a" = "vim.lsp.buf.code_action";
|
||||||
"F" = "function() vim.lsp.buf.format({ async = true }) end";
|
"F" = "function() vim.lsp.buf.format({ async = true }) end";
|
||||||
"<leader><leader>" = "'<c-^>'";
|
"<leader><leader>" = "'<c-^>'";
|
||||||
"<leader>q" = "[[<cmd>bw<cr>]]";
|
"<leader>q" = "[[<cmd>bw<cr>]]";
|
||||||
"<leader>n" = "[[<cmd>bnext<cr>]]";
|
"<leader>n" = "[[<cmd>bnext<cr>]]";
|
||||||
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
"<leader>p" = "[[<cmd>bprev<cr>]]";
|
||||||
|
"<C-w>\\\"" = "[[<cmd>split<cr>]]";
|
||||||
|
"<C-w>%" = "[[<cmd>vsplit<cr>]]";
|
||||||
|
|
||||||
"<C-l>" = "[[<cmd>Outline<cr>]]";
|
"<C-l>" = "[[<cmd>Outline<cr>]]";
|
||||||
"<C-\\\\>" = "require('FTerm').toggle";
|
"<C-\\\\>" = "require('FTerm').toggle";
|
||||||
@@ -170,6 +172,7 @@
|
|||||||
cmp_luasnip
|
cmp_luasnip
|
||||||
cmp-tmux
|
cmp-tmux
|
||||||
cmp-treesitter
|
cmp-treesitter
|
||||||
|
cmp-git
|
||||||
luasnip
|
luasnip
|
||||||
fidget-nvim
|
fidget-nvim
|
||||||
copilot-lua
|
copilot-lua
|
||||||
@@ -282,8 +285,8 @@
|
|||||||
|
|
||||||
cmp.setup.cmdline({ '/', '?' }, {
|
cmp.setup.cmdline({ '/', '?' }, {
|
||||||
mapping = cmp.mapping.preset.cmdline {
|
mapping = cmp.mapping.preset.cmdline {
|
||||||
['<C-n>'] = cmp.config.disable,
|
-- ['<C-n>'] = cmp.config.disable,
|
||||||
['<C-p>'] = cmp.config.disable,
|
-- ['<C-p>'] = cmp.config.disable,
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'buffer' }
|
{ name = 'buffer' }
|
||||||
@@ -291,8 +294,8 @@
|
|||||||
})
|
})
|
||||||
cmp.setup.cmdline(':', {
|
cmp.setup.cmdline(':', {
|
||||||
mapping = cmp.mapping.preset.cmdline {
|
mapping = cmp.mapping.preset.cmdline {
|
||||||
['<C-n>'] = cmp.config.disable,
|
-- ['<C-n>'] = cmp.config.disable,
|
||||||
['<C-p>'] = cmp.config.disable,
|
-- ['<C-p>'] = cmp.config.disable,
|
||||||
},
|
},
|
||||||
-- mapping = cmp.mapping.preset.cmdline(),
|
-- mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
@@ -321,7 +324,7 @@
|
|||||||
},
|
},
|
||||||
-- you can enable a preset for easier configuration
|
-- you can enable a preset for easier configuration
|
||||||
presets = {
|
presets = {
|
||||||
bottom_search = true, -- use a classic bottom cmdline for search
|
bottom_search = false, -- use a classic bottom cmdline for search
|
||||||
command_palette = true, -- position the cmdline and popupmenu together
|
command_palette = true, -- position the cmdline and popupmenu together
|
||||||
long_message_to_split = true, -- long messages will be sent to a split
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||||
|
|||||||
Reference in New Issue
Block a user