diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index 91263fb1..83823527 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -25,12 +25,12 @@ map('n', '', '', { desc = 'Move focus to the upper window' }) -- Double Q to close current window --map('n', 'qq', 'q', { silent = true, desc = 'CLose window' }) --- vim.api.nvim_create_autocmd('FileType', { --- pattern = 'TelescopePrompt', --- callback = function(params) --- vim.keymap.set('', 'qq', '', { noremap = true, buffer = params.buf }) --- end, --- }) +vim.api.nvim_create_autocmd('FileType', { + pattern = 'TelescopePrompt', + callback = function(params) + vim.keymap.set('', 'qq', '', { noremap = true, buffer = params.buf }) + end, +}) -- Keep cursor centered when PgUp & PgDown map('n', '', '', { 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 diff --git a/lua/config/options.lua b/lua/config/options.lua new file mode 100644 index 00000000..e31f2948 --- /dev/null +++ b/lua/config/options.lua @@ -0,0 +1,11 @@ + +vim.diagnostic.config { + update_in_insert = true, + float = { + focusable = false, + }, + signs = true, + underline = true, + virtual_text = false, + severity_sort = true, + } \ No newline at end of file diff --git a/lua/plugins/fzf.lua b/lua/plugins/fzf.lua new file mode 100644 index 00000000..0d15cb89 --- /dev/null +++ b/lua/plugins/fzf.lua @@ -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, + }, +} diff --git a/lua/plugins/lint.lua b/lua/plugins/lint.lua index 91c8d59b..379d6986 100644 --- a/lua/plugins/lint.lua +++ b/lua/plugins/lint.lua @@ -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, }) diff --git a/lua/plugins/lspsaga.lua b/lua/plugins/lspsaga.lua index f95e0b31..16c8c744 100644 --- a/lua/plugins/lspsaga.lua +++ b/lua/plugins/lspsaga.lua @@ -5,9 +5,6 @@ return { opts = {}, config = function(_, opts) opts = opts or {} - require 'lspconfig' - - print(opts) end, }, } diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index 8b912133..b7f23edc 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -87,6 +87,7 @@ return { lsp_client_name = colors.purple, use = true, }, + spinner = { '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' }, timer = { progress_enddelay = 1500, spinner = 1500, diff --git a/lua/plugins/nvim-ufo.lua b/lua/plugins/nvim-ufo.lua index 1d4ac72d..58f6213d 100644 --- a/lua/plugins/nvim-ufo.lua +++ b/lua/plugins/nvim-ufo.lua @@ -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 = { '', '─', '', '', '', '─', '', '' }, diff --git a/lua/plugins/rainbow.lua b/lua/plugins/rainbow.lua index 16fd25ee..ff622d78 100644 --- a/lua/plugins/rainbow.lua +++ b/lua/plugins/rainbow.lua @@ -2,7 +2,7 @@ return { { 'HiPhish/rainbow-delimiters.nvim', config = function(_, opts) - require('rainbow-delimiters.setup').setup {} + require('rainbow-delimiters.setup').setup(opts) end, }, }