mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-26 10:48:40 +02:00
add: update
This commit is contained in:
parent
24292ff1b9
commit
ebb2535ec2
6 changed files with 37 additions and 35 deletions
|
@ -1,5 +1,6 @@
|
|||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
branch = "main",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
config = function()
|
||||
local status_ok, bufferline = pcall(require, "bufferline")
|
||||
|
|
|
@ -261,6 +261,7 @@ return {
|
|||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
-- event = "BufWinEnter",
|
||||
version = "3.5.4",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
lazy = true,
|
||||
opts = {
|
||||
|
@ -480,12 +481,12 @@ return {
|
|||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- },
|
||||
-- for git
|
||||
{
|
||||
"HiPhish/nvim-ts-rainbow2",
|
||||
lazy = true,
|
||||
event = "BufRead",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
-- {
|
||||
-- "HiPhish/nvim-ts-rainbow2",
|
||||
-- lazy = true,
|
||||
-- event = "BufRead",
|
||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
-- },
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
lazy = true,
|
||||
|
|
|
@ -52,15 +52,15 @@ return {
|
|||
lazy = true,
|
||||
-- event = "InsertEnter",
|
||||
},
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
lazy = true,
|
||||
-- event = "BufWinEnter",
|
||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
config = function()
|
||||
require("user.bufferline")
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "akinsho/bufferline.nvim",
|
||||
-- lazy = true,
|
||||
-- -- event = "BufWinEnter",
|
||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||
-- config = function()
|
||||
-- require("user.bufferline")
|
||||
-- end,
|
||||
-- },
|
||||
-- for delete buffers (close files) without closing your windows or messing up your layout.
|
||||
-- { "moll/vim-bbye", event = "InsertEnter" },
|
||||
-- for view terminal
|
||||
|
|
|
@ -19,11 +19,6 @@ M.capabilities = cmp_nvim_lsp.default_capabilities(M.capabilities)
|
|||
|
||||
M.setup = function()
|
||||
local signs = {
|
||||
|
||||
-- { name = "DiagnosticSignError", text = "" },
|
||||
-- { name = "DiagnosticSignWarn", text = "" },
|
||||
-- { name = "DiagnosticSignHint", text = "" },
|
||||
-- { name = "DiagnosticSignInfo", text = "" },
|
||||
{ name = "DiagnosticSignError", text = icons.diagnostics.Error },
|
||||
{ name = "DiagnosticSignWarn", text = icons.diagnostics.Warning },
|
||||
{ name = "DiagnosticSignHint", text = icons.diagnostics.Hint },
|
||||
|
@ -97,12 +92,13 @@ M.on_attach = function(client, bufnr)
|
|||
client.server_capabilities.documentFormattingProvider = false
|
||||
end
|
||||
|
||||
if client.name == "sumneko_lua" then
|
||||
if client.name == "lua_ls" then
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
end
|
||||
|
||||
if client.supports_method("textDocument/inlayHint") then
|
||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
||||
-- vim.lsp.inlay_hint.enable(bufnr, true)
|
||||
vim.lsp.inlay_hint.enable(true)
|
||||
end
|
||||
|
||||
lsp_keymaps(bufnr)
|
||||
|
|
|
@ -28,11 +28,16 @@ configs.setup({
|
|||
-- json = "",
|
||||
-- },
|
||||
-- },
|
||||
-- rainbow = {
|
||||
-- enable = true,
|
||||
-- disable = { "html", "tsx" },
|
||||
-- equery = "rainbow-parens",
|
||||
-- strategy = require("ts-rainbow").strategy.global,
|
||||
-- },
|
||||
rainbow = {
|
||||
enable = true,
|
||||
disable = { "html", "tsx" },
|
||||
equery = "rainbow-parens",
|
||||
strategy = require("ts-rainbow").strategy.global,
|
||||
enable = false,
|
||||
extended_mode = true, -- Highlight also non-parentheses delimiters, boolean or table: lang -> boolean
|
||||
max_file_lines = 1000, -- Do not enable for files with more than 1000 lines, int
|
||||
},
|
||||
-- autotag = { enable = true, enable_rename = true, enable_close = true, enable_close_on_slash = true },
|
||||
incremental_selection = { enable = true },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue