Compare commits

..

4 commits

Author SHA1 Message Date
leafee98 436fb9485a add ruler on col 101 2023-12-15 21:15:46 +08:00
leafee98 78cc4cc7d7 fix: lsp not autostart, fix by Buf{ReadPre,NewFile} 2023-12-15 20:30:17 +08:00
leafee98 22b8eb3178 add plugin trouble 2023-12-15 13:32:55 +08:00
leafee98 f0879dd3dd add plugin dressing 2023-12-15 13:32:06 +08:00
3 changed files with 24 additions and 1 deletions

View file

@ -18,6 +18,8 @@ vim.o.list = true
vim.o.relativenumber = true
vim.o.number = true
vim.o.colorcolumn = "101"
vim.g.mapleader = " "
vim.g.maplocalleader = " "

View file

@ -7,6 +7,12 @@ return {
vim.cmd("colorscheme gruvbox-material")
end
},
{
'stevearc/dressing.nvim',
enabled = custom.full_feature,
event = "VeryLazy",
opts = { },
},
{
"lukas-reineke/indent-blankline.nvim",
main = "ibl",

View file

@ -48,7 +48,8 @@ return {
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
},
event = "VeryLazy",
event = { "BufReadPre", "BufNewFile" },
cmd = { "LspInfo", "LspInstall", "LspUninstall" },
config = function (_, opts)
local capabilities = require("cmp_nvim_lsp").default_capabilities()
@ -101,4 +102,18 @@ return {
{ "gq", vim.diagnostic.setloclist, mode = "n" }
},
},
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
keys = {
{ "<leader>xx", "<cmd>TroubleToggle<cr>", mode = "n" },
{ "<leader>xw", "<cmd>TroubleToggle workspace_diagnostics<cr>", mode = "n" },
{ "<leader>xd", "<cmd>TroubleToggle document_diagnostics<cr>", mode = "n" },
{ "<leader>xq", "<cmd>TroubleToggle quickfix<cr>", mode = "n" },
{ "<leader>xl", "<cmd>TroubleToggle loclist<cr>", mode = "n" },
{ "<leader>xr", "<cmd>TroubleToggle lsp_references<cr>", mode = "n" },
},
opts = { },
},
}