small fix
This commit is contained in:
parent
114a1d8d13
commit
9ebe29ff69
|
@ -25,12 +25,12 @@ map('n', '<C-Up>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
|||
|
||||
-- Double Q to close current window
|
||||
--map('n', 'qq', '<CMD>q<CR>', { silent = true, desc = 'CLose window' })
|
||||
-- vim.api.nvim_create_autocmd('FileType', {
|
||||
-- pattern = 'TelescopePrompt',
|
||||
-- callback = function(params)
|
||||
-- vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
|
||||
-- end,
|
||||
-- })
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'TelescopePrompt',
|
||||
callback = function(params)
|
||||
vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
|
||||
end,
|
||||
})
|
||||
|
||||
-- Keep cursor centered when PgUp & PgDown
|
||||
map('n', '<PgDown>', '<C-d><C-d>', { desc = 'Page down' })
|
||||
|
@ -72,7 +72,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
opts.buffer = bufnr
|
||||
opts.buffer = event.bufnr
|
||||
vim.keymap.set(mode, l, r, opts)
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
vim.diagnostic.config {
|
||||
update_in_insert = true,
|
||||
float = {
|
||||
focusable = false,
|
||||
},
|
||||
signs = true,
|
||||
underline = true,
|
||||
virtual_text = false,
|
||||
severity_sort = true,
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
{
|
||||
'ibhagwan/fzf-lua',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
-- calling `setup` is optional for customization
|
||||
require('fzf-lua').setup {}
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -3,8 +3,8 @@ return {
|
|||
'mfussenegger/nvim-lint',
|
||||
init = function()
|
||||
require('lint').linters_by_ft = {
|
||||
javascript = { 'eslint_d' },
|
||||
typescript = { 'eslint_d' },
|
||||
javascript = { 'biomejs' },
|
||||
typescript = { 'biomejs' },
|
||||
json = { 'jsonlint' },
|
||||
lua = { 'luacheck' },
|
||||
go = { 'revive' },
|
||||
|
@ -15,7 +15,7 @@ return {
|
|||
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
require('lint').try_lint 'codespell'
|
||||
-- require('lint').try_lint 'typos'
|
||||
require('lint').try_lint()
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -5,9 +5,6 @@ return {
|
|||
opts = {},
|
||||
config = function(_, opts)
|
||||
opts = opts or {}
|
||||
require 'lspconfig'
|
||||
|
||||
print(opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -87,6 +87,7 @@ return {
|
|||
lsp_client_name = colors.purple,
|
||||
use = true,
|
||||
},
|
||||
spinner = { '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' },
|
||||
timer = {
|
||||
progress_enddelay = 1500,
|
||||
spinner = 1500,
|
||||
|
|
|
@ -4,7 +4,7 @@ return {
|
|||
dependencies = { 'kevinhwang91/promise-async' },
|
||||
opts = {
|
||||
open_fold_hl_timeout = 400,
|
||||
close_fold_kinds_for_ft = { 'imports', 'comment' },
|
||||
close_fold_kinds_for_ft = { default = { 'imports', 'comment' } },
|
||||
preview = {
|
||||
win_config = {
|
||||
border = { '', '─', '', '', '', '─', '', '' },
|
||||
|
|
|
@ -2,7 +2,7 @@ return {
|
|||
{
|
||||
'HiPhish/rainbow-delimiters.nvim',
|
||||
config = function(_, opts)
|
||||
require('rainbow-delimiters.setup').setup {}
|
||||
require('rainbow-delimiters.setup').setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue