New Neovim configuration

This commit is contained in:
Fabio Scotto di Santolo
2025-07-29 17:33:21 +02:00
parent ab2cd85cfc
commit 04c9854f5b
13 changed files with 149 additions and 40 deletions

View File

@@ -4,14 +4,6 @@
local map = vim.keymap.set
-- Resume last Telescope search
-- map(
-- "n",
-- "<leader>sx",
-- require("telescope.builtin").resume,
-- { noremap = true, silent = true, desc = "Resume Telescope" }
-- )
-- Buffer management
map("n", "<leader>bn", ":bnext<CR>", { noremap = true, silent = true, desc = "Next buffer" })
map("n", "<leader>bp", ":bprevious<CR>", { noremap = true, silent = true, desc = "Previous buffer" })

View File

@@ -30,7 +30,6 @@ require("lazy").setup({
version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax", "catppuccin" } },
checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {

View File

@@ -1,6 +1,7 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
local opt = vim.opt
-- Line numbers
@@ -16,6 +17,7 @@ opt.smartcase = true
-- Highlight current line
opt.cursorline = true
opt.cursorlineopt = "number"
-- Enable true color support
opt.termguicolors = true
@@ -24,9 +26,10 @@ opt.termguicolors = true
opt.clipboard = "unnamedplus"
-- Indentation
opt.expandtab = false
opt.softtabstop = 8
opt.shiftwidth = 8
opt.tabstop = 8
opt.expandtab = true
opt.smartindent = true
-- Split behavior
@@ -49,3 +52,7 @@ opt.foldlevel = 99 -- open all folds by default
-- Show file name and modified flag in the window bar
opt.winbar = "%=%m %f"
-- Backup files
opt.swapfile = false
opt.backup = false

View File

@@ -0,0 +1,26 @@
require("nvim-treesitter.configs").setup({
ensure_installed = {
"c",
"go",
"gomod",
"gowork",
"gosum",
"json",
"lua",
"markdown",
"python",
"zig",
},
highlight = {
enabled = true,
},
incremental_selection = {
enabled = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
})