Add buffer deletion command and update source keymap, configure lsp_lines, null-ls, and trouble plugins

This commit is contained in:
PeteChu 2023-04-05 12:35:32 +07:00
parent b7294ba9c5
commit b366efced2
8 changed files with 123 additions and 30 deletions

View file

@ -1,13 +1,13 @@
return {
{
'akinsho/bufferline.nvim',
config = function ()
config = function()
require("bufferline").setup {
options = {
indicator = { style = "icon", icon = ""},
indicator = { style = "icon", icon = "" },
diagnostics = 'nvim_lsp', -- | "nvim_lsp" | "coc",
diagnostics_update_in_insert = false,
offsets = { { filetype = "NvimTree", text = "", padding = 1 } },
offsets = { { filetype = "NvimTree", text = "File Explorer", padding = 1 } },
separator_style = "thin", -- | "thick" | "thin" | { 'any', 'any' },
always_show_bufferline = true,
}

View file

@ -0,0 +1,6 @@
return {
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
config = function()
require('lsp_lines').setup()
end
}

View file

@ -0,0 +1,12 @@
return {
"jose-elias-alvarez/null-ls.nvim",
config = function()
local null_ls = require("null-ls")
null_ls.setup({
source = {
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.completion.spell,
}
})
end
}

10
lua/custom/plugins/trouble.lua Executable file
View file

@ -0,0 +1,10 @@
return {
"folke/trouble.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons"
},
config = function()
require("trouble").setup {
}
end
}