add: nvim: illuminate whichkey trouble

This commit is contained in:
qwjyh 2023-03-14 12:14:11 +09:00
parent c1146378de
commit cca93ec5cc

View file

@ -16,6 +16,17 @@ vim.opt.rtp:prepend(lazypath)
-- Installing plugins -- Installing plugins
require('lazy').setup({ require('lazy').setup({
{ "catppuccin/nvim", name = "catppuccin" }, -- Color scheme { "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 { -- comment
'numToStr/Comment.nvim', 'numToStr/Comment.nvim',
config = function () config = function ()
@ -72,6 +83,10 @@ require('lazy').setup({
'nvim-lua/plenary.nvim' 'nvim-lua/plenary.nvim'
}, },
}, },
{
'folke/trouble.nvim',
-- config = function
},
}) })
----------------------------------------------------------- -----------------------------------------------------------
@ -344,13 +359,25 @@ lspconfig.satysfi_ls.setup {
autostart = true, autostart = true,
} }
-- bash -- bash
lspconfig.bashls.setup {} lspconfig.bashls.setup {
on_attach = on_attach,
capabilities = capabilities,
}
-- python -- python
lspconfig.pyright.setup {} lspconfig.pyright.setup {
on_attach = on_attach,
capabilities = capabilities,
}
-- rust -- rust
lspconfig.rust_analyzer.setup {} lspconfig.rust_analyzer.setup {
on_attach = on_attach,
capabilities = capabilities,
}
-- tex -- tex
lspconfig.texlab.setup {} lspconfig.texlab.setup {
on_attach = on_attach,
capabilities = capabilities,
}
-- nvim-cmp setup -- nvim-cmp setup
local cmp = require 'cmp' local cmp = require 'cmp'