diff --git a/config/nvim/lua/options.lua b/config/nvim/lua/options.lua index f9a2cd9..5a6c76f 100644 --- a/config/nvim/lua/options.lua +++ b/config/nvim/lua/options.lua @@ -26,6 +26,7 @@ g.loaded_java_provider = 0 -- Disable java provider -- Most of the good defaults are provided by `mini.basics` -- See: lua/plugins/mini.lua 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.inccommand = 'split' -- Preview substitutions live, as you type! 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.signcolumn = 'yes' -- Keep signcolumn on by default 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.splitright = true -- vsplit to the right o.termguicolors = true -- Enable GUI colors diff --git a/config/nvim/lua/plugins/folke.lua b/config/nvim/lua/plugins/folke.lua index b24b9b0..073f580 100644 --- a/config/nvim/lua/plugins/folke.lua +++ b/config/nvim/lua/plugins/folke.lua @@ -5,8 +5,13 @@ return { 'folke/snacks.nvim', priority = 1000, lazy = false, + ---@diagnostic disable-next-line: undefined-doc-name + ---@type snacks.Config opts = { bigfile = { enabled = true }, + input = { + enabled = true, + }, gitbrowse = { enabled = true }, quickfile = { enabled = true }, statuscolumn = { diff --git a/config/nvim/lua/plugins/lsp.lua b/config/nvim/lua/plugins/lsp.lua index 559e18a..44d6f99 100644 --- a/config/nvim/lua/plugins/lsp.lua +++ b/config/nvim/lua/plugins/lsp.lua @@ -108,17 +108,25 @@ local lsp_servers = { -- These are automatically configured by WhoIsSethDaniel/mason-tool-installer.nvim local mason_tools = { 'actionlint', + 'ast-grep', + 'black', 'editorconfig-checker', 'goimports', + 'golangci-lint', + 'golines', + 'gopls', 'gotests', + 'isort', 'phpcbf', 'phpmd', 'phpstan', 'pint', 'prettierd', + 'revive', 'semgrep', 'shellcheck', 'shfmt', + 'sonarlint-language-server', 'staticcheck', 'stylua', 'trivy', @@ -323,7 +331,7 @@ return { -- Disable autoformat for files in a certain paths 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 { timeout_ms = 500, diff --git a/config/nvim/lua/plugins/neotree.lua b/config/nvim/lua/plugins/neotree.lua index 44b76f0..d244328 100644 --- a/config/nvim/lua/plugins/neotree.lua +++ b/config/nvim/lua/plugins/neotree.lua @@ -41,7 +41,7 @@ return { 'document_symbols', }, source_selector = { - winbar = true, + winbar = false, statusline = false, separator = { left = '', right = '' }, show_separator_on_edge = true, diff --git a/config/nvim/lua/plugins/ui.lua b/config/nvim/lua/plugins/ui.lua index 207f40f..40146db 100644 --- a/config/nvim/lua/plugins/ui.lua +++ b/config/nvim/lua/plugins/ui.lua @@ -1,12 +1,15 @@ 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. - config = function() - -- set the theme - vim.cmd 'colorscheme pencil' - end, + opts = { + borders = true, + fade_nc = true, + disable = { + float_background = true, + }, + }, }, -- Automatic dark mode