chore(config): nvim config tweaks

Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
2025-03-31 21:04:50 +03:00
parent 97244d5287
commit 0f9a76e36f
5 changed files with 26 additions and 9 deletions

View File

@@ -26,6 +26,7 @@ g.loaded_java_provider = 0 -- Disable java provider
-- Most of the good defaults are provided by `mini.basics` -- Most of the good defaults are provided by `mini.basics`
-- See: lua/plugins/mini.lua -- See: lua/plugins/mini.lua
o.confirm = true -- Confirm before closing unsaved buffers o.confirm = true -- Confirm before closing unsaved buffers
o.dictionary = '/usr/share/dict/words' -- Add system dictionary
o.ignorecase = true -- Ignore case in search patterns o.ignorecase = true -- Ignore case in search patterns
o.inccommand = 'split' -- Preview substitutions live, as you type! o.inccommand = 'split' -- Preview substitutions live, as you type!
o.list = true -- Show invisible characters o.list = true -- Show invisible characters
@@ -37,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 = 'en_us' -- Set the spell checking language o.spelllang = 'fi,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

View File

@@ -5,8 +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
opts = { opts = {
bigfile = { enabled = true }, bigfile = { enabled = true },
input = {
enabled = true,
},
gitbrowse = { enabled = true }, gitbrowse = { enabled = true },
quickfile = { enabled = true }, quickfile = { enabled = true },
statuscolumn = { statuscolumn = {

View File

@@ -108,17 +108,25 @@ local lsp_servers = {
-- These are automatically configured by WhoIsSethDaniel/mason-tool-installer.nvim -- These are automatically configured by WhoIsSethDaniel/mason-tool-installer.nvim
local mason_tools = { local mason_tools = {
'actionlint', 'actionlint',
'ast-grep',
'black',
'editorconfig-checker', 'editorconfig-checker',
'goimports', 'goimports',
'golangci-lint',
'golines',
'gopls',
'gotests', 'gotests',
'isort',
'phpcbf', 'phpcbf',
'phpmd', 'phpmd',
'phpstan', 'phpstan',
'pint', 'pint',
'prettierd', 'prettierd',
'revive',
'semgrep', 'semgrep',
'shellcheck', 'shellcheck',
'shfmt', 'shfmt',
'sonarlint-language-server',
'staticcheck', 'staticcheck',
'stylua', 'stylua',
'trivy', 'trivy',
@@ -323,7 +331,7 @@ return {
-- Disable autoformat for files in a certain paths -- Disable autoformat for files in a certain paths
local bufname = vim.api.nvim_buf_get_name(bufnr) local bufname = vim.api.nvim_buf_get_name(bufnr)
if bufname:match '/node_modules|vendor/' then return end if bufname:match '/dist|node_modules|vendor/' then return end
return { return {
timeout_ms = 500, timeout_ms = 500,

View File

@@ -41,7 +41,7 @@ return {
'document_symbols', 'document_symbols',
}, },
source_selector = { source_selector = {
winbar = true, winbar = false,
statusline = false, statusline = false,
separator = { left = '', right = '' }, separator = { left = '', right = '' },
show_separator_on_edge = true, show_separator_on_edge = true,

View File

@@ -1,12 +1,15 @@
return { return {
-- https://github.com/preservim/vim-colors-pencil -- https://github.com/rmehri01/onenord.nvim
{ {
'preservim/vim-colors-pencil', 'rmehri01/onenord.nvim',
priority = 1000, -- Make sure to load this before all the other start plugins. priority = 1000, -- Make sure to load this before all the other start plugins.
config = function() opts = {
-- set the theme borders = true,
vim.cmd 'colorscheme pencil' fade_nc = true,
end, disable = {
float_background = true,
},
},
}, },
-- Automatic dark mode -- Automatic dark mode