add: nvim: illuminate whichkey trouble
This commit is contained in:
parent
c1146378de
commit
cca93ec5cc
1 changed files with 31 additions and 4 deletions
|
@ -16,6 +16,17 @@ vim.opt.rtp:prepend(lazypath)
|
|||
-- Installing plugins
|
||||
require('lazy').setup({
|
||||
{ "catppuccin/nvim", name = "catppuccin" }, -- Color scheme
|
||||
{
|
||||
'folke/which-key.nvim',
|
||||
config = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
require('which-key').setup {
|
||||
|
||||
}
|
||||
end,
|
||||
},
|
||||
{ 'RRethy/vim-illuminate', }, -- highlight keywords under cursor
|
||||
{ -- comment
|
||||
'numToStr/Comment.nvim',
|
||||
config = function ()
|
||||
|
@ -72,6 +83,10 @@ require('lazy').setup({
|
|||
'nvim-lua/plenary.nvim'
|
||||
},
|
||||
},
|
||||
{
|
||||
'folke/trouble.nvim',
|
||||
-- config = function
|
||||
},
|
||||
})
|
||||
|
||||
-----------------------------------------------------------
|
||||
|
@ -344,13 +359,25 @@ lspconfig.satysfi_ls.setup {
|
|||
autostart = true,
|
||||
}
|
||||
-- bash
|
||||
lspconfig.bashls.setup {}
|
||||
lspconfig.bashls.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
-- python
|
||||
lspconfig.pyright.setup {}
|
||||
lspconfig.pyright.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
-- rust
|
||||
lspconfig.rust_analyzer.setup {}
|
||||
lspconfig.rust_analyzer.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
-- tex
|
||||
lspconfig.texlab.setup {}
|
||||
lspconfig.texlab.setup {
|
||||
on_attach = on_attach,
|
||||
capabilities = capabilities,
|
||||
}
|
||||
|
||||
-- nvim-cmp setup
|
||||
local cmp = require 'cmp'
|
||||
|
|
Loading…
Reference in a new issue