small fix

This commit is contained in:
Iwaniuk Krzysztof 2024-07-11 20:55:00 +02:00
parent 114a1d8d13
commit 9ebe29ff69
8 changed files with 34 additions and 15 deletions

View File

@ -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

11
lua/config/options.lua Normal file
View File

@ -0,0 +1,11 @@
vim.diagnostic.config {
update_in_insert = true,
float = {
focusable = false,
},
signs = true,
underline = true,
virtual_text = false,
severity_sort = true,
}

10
lua/plugins/fzf.lua Normal file
View File

@ -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,
},
}

View File

@ -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,
})

View File

@ -5,9 +5,6 @@ return {
opts = {},
config = function(_, opts)
opts = opts or {}
require 'lspconfig'
print(opts)
end,
},
}

View File

@ -87,6 +87,7 @@ return {
lsp_client_name = colors.purple,
use = true,
},
spinner = { '', '', '', '', '', '', '', '', '', '' },
timer = {
progress_enddelay = 1500,
spinner = 1500,

View File

@ -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 = { '', '', '', '', '', '', '', '' },

View File

@ -2,7 +2,7 @@ return {
{
'HiPhish/rainbow-delimiters.nvim',
config = function(_, opts)
require('rainbow-delimiters.setup').setup {}
require('rainbow-delimiters.setup').setup(opts)
end,
},
}