mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 08:53:37 +00:00
chore(config): nvim: cleanup and fixes
Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
@@ -38,7 +38,7 @@ o.scrolloff = 8 -- Show context around cursor
|
|||||||
o.sidescrolloff = 8 -- Show context around cursor
|
o.sidescrolloff = 8 -- Show context around cursor
|
||||||
o.signcolumn = 'yes' -- Keep signcolumn on by default
|
o.signcolumn = 'yes' -- Keep signcolumn on by default
|
||||||
o.spell = true -- Enable spell checking
|
o.spell = true -- Enable spell checking
|
||||||
o.spelllang = 'fi,en_us' -- Set the spell checking language
|
o.spelllang = 'en_gb,en_us' -- Set the spell checking language
|
||||||
o.splitbelow = true -- split to the bottom
|
o.splitbelow = true -- split to the bottom
|
||||||
o.splitright = true -- vsplit to the right
|
o.splitright = true -- vsplit to the right
|
||||||
o.termguicolors = true -- Enable GUI colors
|
o.termguicolors = true -- Enable GUI colors
|
||||||
|
|||||||
@@ -5,12 +5,13 @@ return {
|
|||||||
'folke/snacks.nvim',
|
'folke/snacks.nvim',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
---@diagnostic disable-next-line: undefined-doc-name
|
|
||||||
---@type snacks.Config
|
---@type snacks.Config
|
||||||
opts = {
|
opts = {
|
||||||
bigfile = { enabled = true },
|
bigfile = { enabled = true },
|
||||||
input = {
|
input = { enabled = true },
|
||||||
|
notifier = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
timeout = 3000,
|
||||||
},
|
},
|
||||||
gitbrowse = { enabled = true },
|
gitbrowse = { enabled = true },
|
||||||
quickfile = { enabled = true },
|
quickfile = { enabled = true },
|
||||||
@@ -43,6 +44,11 @@ return {
|
|||||||
{
|
{
|
||||||
'folke/noice.nvim',
|
'folke/noice.nvim',
|
||||||
event = 'VeryLazy',
|
event = 'VeryLazy',
|
||||||
|
dependencies = {
|
||||||
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
'MunifTanjim/nui.nvim',
|
||||||
|
'rcarriga/nvim-notify',
|
||||||
|
},
|
||||||
opts = {
|
opts = {
|
||||||
lsp = {
|
lsp = {
|
||||||
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
|
||||||
@@ -65,7 +71,10 @@ return {
|
|||||||
filter = {
|
filter = {
|
||||||
event = 'msg_show',
|
event = 'msg_show',
|
||||||
kind = '',
|
kind = '',
|
||||||
find = 'written',
|
any = {
|
||||||
|
{ find = 'written' },
|
||||||
|
{ find = '%d of %d --%d%--' },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
opts = { skip = true },
|
opts = { skip = true },
|
||||||
},
|
},
|
||||||
@@ -106,14 +115,6 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
dependencies = {
|
|
||||||
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
|
||||||
'MunifTanjim/nui.nvim',
|
|
||||||
-- OPTIONAL:
|
|
||||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
|
||||||
-- If not available, we use `mini` as the fallback
|
|
||||||
'rcarriga/nvim-notify',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- A pretty diagnostics, references, telescope results,
|
-- A pretty diagnostics, references, telescope results,
|
||||||
@@ -136,7 +137,7 @@ return {
|
|||||||
},
|
},
|
||||||
modes = {
|
modes = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
auto_open = true,
|
auto_open = false,
|
||||||
},
|
},
|
||||||
test = {
|
test = {
|
||||||
mode = 'diagnostics',
|
mode = 'diagnostics',
|
||||||
@@ -144,7 +145,7 @@ return {
|
|||||||
type = 'split',
|
type = 'split',
|
||||||
relative = 'win',
|
relative = 'win',
|
||||||
position = 'right',
|
position = 'right',
|
||||||
size = 0.3,
|
size = 0.25,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
cascade = {
|
cascade = {
|
||||||
@@ -163,13 +164,4 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Navigate your code with search labels, enhanced
|
|
||||||
-- character motions and Treesitter integration
|
|
||||||
-- https://github.com/folke/flash.nvim
|
|
||||||
{
|
|
||||||
'folke/flash.nvim',
|
|
||||||
event = 'VeryLazy',
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,14 @@ return {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Better Around/Inside textobjects
|
||||||
|
--
|
||||||
|
-- Examples:
|
||||||
|
-- - va) - [V]isually select [A]round [)]paren
|
||||||
|
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
|
||||||
|
-- - ci' - [C]hange [I]nside [']quote
|
||||||
|
require('mini.ai').setup { n_lines = 500 }
|
||||||
|
|
||||||
-- Animate common Neovim actions
|
-- Animate common Neovim actions
|
||||||
-- Replaced anuvyklack/windows.nvim
|
-- Replaced anuvyklack/windows.nvim
|
||||||
require('mini.animate').setup()
|
require('mini.animate').setup()
|
||||||
|
|||||||
Reference in New Issue
Block a user