aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config
diff options
context:
space:
mode:
authorSergii Tykhomyrov <sergii@tykhomyrov.net>2026-08-03 21:26:37 +0200
committerSergii Tykhomyrov <sergii@tykhomyrov.net>2026-08-03 21:26:37 +0200
commit29b4e6c2bca441d5071b47b36f9a66a88964d880 (patch)
tree365836e24b43aea5e61178be089c53042d1c4093 /nvim/.config
parentf05d119985702138c23a7b3e0fc47f6ebcfa8eab (diff)
downloaddotfiles-29b4e6c2bca441d5071b47b36f9a66a88964d880.tar.gz
dotfiles-29b4e6c2bca441d5071b47b36f9a66a88964d880.zip
Restructure: new nvim/tmux/editorconfig, remove stale packages
Replace the old nvim package with the new minimal config. Add tmux and editorconfig packages in dot- convention. Remove i3, kitty, alacritty, and xbindkeys packages. Use /bin/sh in the Makefile; zsh is not on every machine. Add .stowrc so plain stow works without the Makefile. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYrzpJevCUUqP6pFyJHmB4
Diffstat (limited to 'nvim/.config')
-rw-r--r--nvim/.config/nvim/after/syntax/markdown.vim1
-rw-r--r--nvim/.config/nvim/init.lua102
-rw-r--r--nvim/.config/nvim/lazy-lock.json12
-rw-r--r--nvim/.config/nvim/lua/plugins/lsp.lua18
-rw-r--r--nvim/.config/nvim/lua/plugins/neo-tree.lua23
-rw-r--r--nvim/.config/nvim/lua/plugins/telescope.lua9
-rw-r--r--nvim/.config/nvim/lua/plugins/treesitter.lua16
7 files changed, 0 insertions, 181 deletions
diff --git a/nvim/.config/nvim/after/syntax/markdown.vim b/nvim/.config/nvim/after/syntax/markdown.vim
deleted file mode 100644
index d9b0a80..0000000
--- a/nvim/.config/nvim/after/syntax/markdown.vim
+++ /dev/null
@@ -1 +0,0 @@
-syn clear markdownError
diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua
deleted file mode 100644
index f621504..0000000
--- a/nvim/.config/nvim/init.lua
+++ /dev/null
@@ -1,102 +0,0 @@
--- Basic options
-vim.g.mapleader = " "
-vim.g.maplocalleader = "\\"
-
-vim.opt.number = true
-vim.opt.relativenumber = false
-vim.opt.mouse = "a"
-vim.opt.ignorecase = true
-vim.opt.smartcase = true
-vim.opt.expandtab = true
-vim.opt.softtabstop = 4
-vim.opt.shiftwidth = 4
-vim.opt.tabstop = 4
-vim.opt.autoindent = true
-vim.opt.cindent = true
-vim.opt.signcolumn = "yes"
-vim.opt.termguicolors = true
-vim.opt.splitright = true
-vim.opt.splitbelow = true
-vim.opt.clipboard = "unnamedplus"
-vim.opt.undofile = true
-vim.opt.cursorline = true
-vim.opt.background="dark"
-vim.opt.completeopt = { "menuone", "noinsert", "popup" }
-
-vim.cmd.colorscheme("habamax")
-
--- Diagnostics: show messages as virtual text, no fancy UI
-vim.diagnostic.config({
- virtual_text = true,
- severity_sort = true,
-})
-
--- Native LSP completion (NeoVim 0.11+), no completion plugin needed
-vim.api.nvim_create_autocmd("LspAttach", {
- callback = function(ev)
- local client = vim.lsp.get_client_by_id(ev.data.client_id)
- if client and client:supports_method("textDocument/completion") then
- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
- end
- end,
-})
-
-vim.keymap.set("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
-
--- Go convention: organize imports and format on save (via gopls)
-vim.api.nvim_create_autocmd("BufWritePre", {
- pattern = "*.go",
- callback = function()
- local client = vim.lsp.get_clients({ bufnr = 0, name = "gopls" })[1]
- if not client then
- return
- end
- local params = vim.lsp.util.make_range_params(0, client.offset_encoding)
- params.context = { only = { "source.organizeImports" } }
- local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, 2000)
- for _, res in pairs(result or {}) do
- for _, action in pairs(res.result or {}) do
- if action.edit then
- vim.lsp.util.apply_workspace_edit(action.edit, client.offset_encoding)
- end
- end
- end
- vim.lsp.buf.format()
- end,
-})
-
--- Spell checking for markdown and git commit messages
-vim.api.nvim_create_autocmd("FileType", {
- pattern = { "markdown", "gitcommit" },
- callback = function()
- vim.opt_local.spell = true
- vim.opt_local.spelllang = "en_us"
- end,
-})
-
-
--- Bootstrap lazy.nvim
-local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-if not (vim.uv or vim.loop).fs_stat(lazypath) then
- local lazyrepo = "https://github.com/folke/lazy.nvim.git"
- local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
- if vim.v.shell_error ~= 0 then
- vim.api.nvim_echo({
- { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
- { out, "WarningMsg" },
- { "\nPress any key to exit..." },
- }, true, {})
- vim.fn.getchar()
- os.exit(1)
- end
-end
-vim.opt.rtp:prepend(lazypath)
-
--- Setup lazy.nvim (loads all files in lua/plugins/)
-require("lazy").setup({
- spec = {
- { import = "plugins" },
- },
- install = { colorscheme = { "habamax" } },
- checker = { enabled = true, notify = false },
-})
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
deleted file mode 100644
index c2c2f1a..0000000
--- a/nvim/.config/nvim/lazy-lock.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
- "mason-lspconfig.nvim": { "branch": "main", "commit": "67029ccdac1ef8941e13b826417bc0ffac24cc86" },
- "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
- "neo-tree.nvim": { "branch": "v3.x", "commit": "ebd66767191714e008ce73b769518a763ff31bdc" },
- "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
- "nvim-lspconfig": { "branch": "master", "commit": "1c0d8f70dbc8827263eedc3cf7021ceba0f68689" },
- "nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" },
- "nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" },
- "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
- "telescope.nvim": { "branch": "master", "commit": "427b576c16792edad01a92b89721d923c19ad60f" }
-}
diff --git a/nvim/.config/nvim/lua/plugins/lsp.lua b/nvim/.config/nvim/lua/plugins/lsp.lua
deleted file mode 100644
index 15933fa..0000000
--- a/nvim/.config/nvim/lua/plugins/lsp.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-return {
- {
- "mason-org/mason.nvim",
- opts = {},
- },
- {
- -- Installs language servers and enables them automatically.
- -- Add "clangd" to ensure_installed for C/C++ later.
- "mason-org/mason-lspconfig.nvim",
- dependencies = {
- "mason-org/mason.nvim",
- "neovim/nvim-lspconfig",
- },
- opts = {
- ensure_installed = { "gopls", "pyright" },
- },
- },
-}
diff --git a/nvim/.config/nvim/lua/plugins/neo-tree.lua b/nvim/.config/nvim/lua/plugins/neo-tree.lua
deleted file mode 100644
index eba00dd..0000000
--- a/nvim/.config/nvim/lua/plugins/neo-tree.lua
+++ /dev/null
@@ -1,23 +0,0 @@
-return {
- "nvim-neo-tree/neo-tree.nvim",
- branch = "v3.x",
- dependencies = {
- "nvim-lua/plenary.nvim",
- "MunifTanjim/nui.nvim",
- "nvim-tree/nvim-web-devicons",
- },
- lazy = false,
- keys = {
- { "<leader>e", "<Cmd>Neotree toggle float<CR>", desc = "Toggle Neo-tree" },
- },
- opts = {
- close_if_last_window = true,
- filesystem = {
- follow_current_file = { enabled = true },
- use_libuv_file_watcher = true,
- },
- window = {
- position = "float",
- },
- },
-}
diff --git a/nvim/.config/nvim/lua/plugins/telescope.lua b/nvim/.config/nvim/lua/plugins/telescope.lua
deleted file mode 100644
index 76f77c2..0000000
--- a/nvim/.config/nvim/lua/plugins/telescope.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-return {
- "nvim-telescope/telescope.nvim",
- dependencies = { "nvim-lua/plenary.nvim" },
- keys = {
- { "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
- { "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Search in files" },
- { "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Open buffers" },
- },
-}
diff --git a/nvim/.config/nvim/lua/plugins/treesitter.lua b/nvim/.config/nvim/lua/plugins/treesitter.lua
deleted file mode 100644
index 9692f57..0000000
--- a/nvim/.config/nvim/lua/plugins/treesitter.lua
+++ /dev/null
@@ -1,16 +0,0 @@
-return {
- "nvim-treesitter/nvim-treesitter",
- branch = "master",
- build = ":TSUpdate",
- config = function()
- require("nvim-treesitter.configs").setup({
- ensure_installed = {
- "python", "go", "gomod", "gosum",
- "lua", "vim", "vimdoc",
- "markdown", "markdown_inline", "yaml",
- },
- highlight = { enable = true },
- indent = { enable = true },
- })
- end,
-}