Skip to content

Commit 9ebe29f

Browse files
committed
small fix
1 parent 114a1d8 commit 9ebe29f

File tree

8 files changed

+34
-15
lines changed

8 files changed

+34
-15
lines changed

lua/config/keybinds.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ map('n', '<C-Up>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
2525

2626
-- Double Q to close current window
2727
--map('n', 'qq', '<CMD>q<CR>', { silent = true, desc = 'CLose window' })
28-
-- vim.api.nvim_create_autocmd('FileType', {
29-
-- pattern = 'TelescopePrompt',
30-
-- callback = function(params)
31-
-- vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
32-
-- end,
33-
-- })
28+
vim.api.nvim_create_autocmd('FileType', {
29+
pattern = 'TelescopePrompt',
30+
callback = function(params)
31+
vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
32+
end,
33+
})
3434

3535
-- Keep cursor centered when PgUp & PgDown
3636
map('n', '<PgDown>', '<C-d><C-d>', { desc = 'Page down' })
@@ -72,7 +72,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
7272

7373
local function map(mode, l, r, opts)
7474
opts = opts or {}
75-
opts.buffer = bufnr
75+
opts.buffer = event.bufnr
7676
vim.keymap.set(mode, l, r, opts)
7777
end
7878

lua/config/options.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
vim.diagnostic.config {
3+
update_in_insert = true,
4+
float = {
5+
focusable = false,
6+
},
7+
signs = true,
8+
underline = true,
9+
virtual_text = false,
10+
severity_sort = true,
11+
}

lua/plugins/fzf.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
return {
2+
{
3+
'ibhagwan/fzf-lua',
4+
dependencies = { 'nvim-tree/nvim-web-devicons' },
5+
config = function()
6+
-- calling `setup` is optional for customization
7+
require('fzf-lua').setup {}
8+
end,
9+
},
10+
}

lua/plugins/lint.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ return {
33
'mfussenegger/nvim-lint',
44
init = function()
55
require('lint').linters_by_ft = {
6-
javascript = { 'eslint_d' },
7-
typescript = { 'eslint_d' },
6+
javascript = { 'biomejs' },
7+
typescript = { 'biomejs' },
88
json = { 'jsonlint' },
99
lua = { 'luacheck' },
1010
go = { 'revive' },
@@ -15,7 +15,7 @@ return {
1515
vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
1616
group = lint_augroup,
1717
callback = function()
18-
require('lint').try_lint 'codespell'
18+
-- require('lint').try_lint 'typos'
1919
require('lint').try_lint()
2020
end,
2121
})

lua/plugins/lspsaga.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ return {
55
opts = {},
66
config = function(_, opts)
77
opts = opts or {}
8-
require 'lspconfig'
9-
10-
print(opts)
118
end,
129
},
1310
}

lua/plugins/lualine.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ return {
8787
lsp_client_name = colors.purple,
8888
use = true,
8989
},
90+
spinner = { '', '', '', '', '', '', '', '', '', '' },
9091
timer = {
9192
progress_enddelay = 1500,
9293
spinner = 1500,

lua/plugins/nvim-ufo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ return {
44
dependencies = { 'kevinhwang91/promise-async' },
55
opts = {
66
open_fold_hl_timeout = 400,
7-
close_fold_kinds_for_ft = { 'imports', 'comment' },
7+
close_fold_kinds_for_ft = { default = { 'imports', 'comment' } },
88
preview = {
99
win_config = {
1010
border = { '', '', '', '', '', '', '', '' },

lua/plugins/rainbow.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ return {
22
{
33
'HiPhish/rainbow-delimiters.nvim',
44
config = function(_, opts)
5-
require('rainbow-delimiters.setup').setup {}
5+
require('rainbow-delimiters.setup').setup(opts)
66
end,
77
},
88
}

0 commit comments

Comments
 (0)