From ec47c850389e61f69dc413c551e5f2438ce630df Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 17 Feb 2026 02:41:07 +0100 Subject: . --- nvim/lua/plugins/ale.lua | 17 ++++++++ nvim/lua/plugins/init.lua | 82 ++++++++++++++++++++++++++++++++++++ nvim/lua/plugins/nvim-cmp.lua | 40 ++++++++++++++++++ nvim/lua/plugins/nvim-lspconfig.lua | 18 ++++++++ nvim/lua/plugins/nvim-tree.lua | 47 +++++++++++++++++++++ nvim/lua/plugins/nvim-treesitter.lua | 14 ++++++ nvim/lua/plugins/outline.lua | 23 ++++++++++ nvim/lua/plugins/telescope.lua | 31 ++++++++++++++ nvim/lua/plugins/undotree.lua | 9 ++++ nvim/lua/plugins/which-key.lua | 18 ++++++++ 10 files changed, 299 insertions(+) create mode 100644 nvim/lua/plugins/ale.lua create mode 100644 nvim/lua/plugins/init.lua create mode 100644 nvim/lua/plugins/nvim-cmp.lua create mode 100644 nvim/lua/plugins/nvim-lspconfig.lua create mode 100644 nvim/lua/plugins/nvim-tree.lua create mode 100644 nvim/lua/plugins/nvim-treesitter.lua create mode 100644 nvim/lua/plugins/outline.lua create mode 100644 nvim/lua/plugins/telescope.lua create mode 100644 nvim/lua/plugins/undotree.lua create mode 100644 nvim/lua/plugins/which-key.lua (limited to 'nvim/lua/plugins') diff --git a/nvim/lua/plugins/ale.lua b/nvim/lua/plugins/ale.lua new file mode 100644 index 0000000..6219a20 --- /dev/null +++ b/nvim/lua/plugins/ale.lua @@ -0,0 +1,17 @@ +do return {} end +return { + { + 'dense-analysis/ale', + config = function() + vim.g.ale_linters_explicit = 1 + -- vim.g.ale_virtualtext_cursor = 'current' + vim.g.ale_virtualtext_cursor = 'disabled' + vim.g.ale_linters = { + python = {'flake8'}, + lua = {'lua_language_server'}, + c = {'clangd'} + } + + end + } +} diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua new file mode 100644 index 0000000..7ad84ab --- /dev/null +++ b/nvim/lua/plugins/init.lua @@ -0,0 +1,82 @@ +return { + { + 'tanvirtin/monokai.nvim', + priority = 100, + opts = {} + }, + + {'christoomey/vim-tmux-navigator'}, + + {'mg979/vim-visual-multi'}, + + { + 'akinsho/bufferline.nvim', + dependencies = { + 'nvim-tree/nvim-web-devicons' + }, + opts = {} + }, + + { + 'nvim-lualine/lualine.nvim', + dependencies = { + 'tanvirtin/monokai.nvim' + }, + opts = {} + }, + + { + 'lukas-reineke/indent-blankline.nvim', + main = 'ibl', + opts = { + indent = { + char = '┊' + }, + scope = { + enabled = false + } + } + }, + + { + 'lewis6991/gitsigns.nvim', + opts = {} + }, + + -- { + -- 'mrjones2014/legendary.nvim', + -- dependencies = { "stevearc/dressing.nvim" }, + -- opts = {}, + -- init = function() + -- vim.keymap.set('', '', vim.cmd.Legendary) + -- end + -- }, + + -- { + -- 'KabbAmine/zeavim.vim', + -- init = function() + -- vim.keymap.set('', '', vim.cmd.Zeavim) + -- end + -- } + + -- {'jiangmiao/auto-pairs'}, + + -- {'rafamadriz/neon'}, + + -- { + -- 'numToStr/Comment.nvim', + -- opts = {} + -- }, + + -- { + -- 'wfxr/minimap.vim', + -- dependencies = { + -- 'tanvirtin/monokai.nvim' + -- }, + -- init = function() + -- vim.g.minimap_highlight_range = 0 + -- vim.g.minimap_git_colors = 0 + -- vim.keymap.set('', '', vim.cmd.MinimapToggle) + -- end + -- }, +} diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua new file mode 100644 index 0000000..e365000 --- /dev/null +++ b/nvim/lua/plugins/nvim-cmp.lua @@ -0,0 +1,40 @@ +return { + { + 'hrsh7th/nvim-cmp', + dependencies = { + 'hrsh7th/cmp-nvim-lsp', + 'hrsh7th/cmp-buffer', + 'hrsh7th/cmp-vsnip', + 'hrsh7th/vim-vsnip' + }, + main = 'cmp', + opts = function() + local cmp = require('cmp') + return { + completion = { + autocomplete = false + }, + snippet = { + expand = function (args) + vim.fn["vsnip#anonymous"](args.body) + end + }, + mapping = cmp.mapping.preset.insert({ + [''] = function() + if cmp.visible() then + cmp.close() + else + cmp.complete() + end + end, + [''] = cmp.mapping.abort(), + [''] = cmp.mapping.confirm({ select = true }) + }), + sources = cmp.config.sources({ + { name = 'nvim_lsp' }, + { name = 'buffer' } + }) + } + end + } +} diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua new file mode 100644 index 0000000..0be2f98 --- /dev/null +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -0,0 +1,18 @@ +return { + { + 'neovim/nvim-lspconfig', + init = function() + -- vim.lsp.config('lua_ls', { + -- cmd = {'lua-language-server'}, + -- filetypes = {'lua'}, + -- root_markers = {'.luarc.json', '.git'} + -- }) + + -- vim.lsp.config('clangd', { + -- cmd = {'clangd', '--header-insertion=never'} + -- }) + + vim.lsp.enable('lua_ls') + end + } +} diff --git a/nvim/lua/plugins/nvim-tree.lua b/nvim/lua/plugins/nvim-tree.lua new file mode 100644 index 0000000..9cad99a --- /dev/null +++ b/nvim/lua/plugins/nvim-tree.lua @@ -0,0 +1,47 @@ +return { + { + 'nvim-tree/nvim-tree.lua', + dependencies = { + 'nvim-lua/plenary.nvim', + 'nvim-tree/nvim-web-devicons' + }, + opts = { + filters = { + dotfiles = false + }, + update_focused_file = { + enable = true + }, + renderer = { + icons = { + webdev_colors = true, + git_placement = 'signcolumn' + }, + highlight_git = 'name' + }, + view = { + signcolumn = 'yes' + }, + actions = { + change_dir = { + global = true + } + }, + live_filter = { + always_show_folders = false + }, + git = { + ignore = false + } + }, + init = function() + -- vim.api.nvim_create_autocmd({"VimEnter"}, { + -- callback = function() + -- require("nvim-tree.api").tree.open() + -- end + -- }) + + vim.keymap.set('n', 'tt', vim.cmd.NvimTreeToggle, {desc = "Toggle tree (nvim-tree)"}) + end + } +} diff --git a/nvim/lua/plugins/nvim-treesitter.lua b/nvim/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..ba79956 --- /dev/null +++ b/nvim/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,14 @@ +return { + { + 'nvim-treesitter/nvim-treesitter', + build = ':TSUpdate', + opts = { + ensure_installed = { + 'python', 'bash', 'lua', 'javascript', 'c', 'json', 'html' + }, + highlight = { + enable = true + } + } + } +} diff --git a/nvim/lua/plugins/outline.lua b/nvim/lua/plugins/outline.lua new file mode 100644 index 0000000..cecd7b3 --- /dev/null +++ b/nvim/lua/plugins/outline.lua @@ -0,0 +1,23 @@ +return { + -- { + -- 'majutsushi/tagbar', + -- init = function() + -- vim.keymap.set('n', 'to', vim.cmd.TagbarToggle, {desc = 'Toggle outline (tagbar)'}) + -- end + -- } + { + "hedyhli/outline.nvim", + dependencies = { + 'epheien/outline-treesitter-provider.nvim', + 'epheien/outline-ctags-provider.nvim' + }, + opts = { + providers = { + priority = {'lsp', 'ctags', 'treesitter'} + } + }, + init = function() + vim.keymap.set('n', 'to', vim.cmd.Outline, {desc = 'Toggle outline (outline)'}) + end + } +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..67d55bd --- /dev/null +++ b/nvim/lua/plugins/telescope.lua @@ -0,0 +1,31 @@ +return { + { + 'nvim-telescope/telescope.nvim', + dependencies = { + 'BurntSushi/ripgrep', + 'nvim-lua/plenary.nvim', + 'cljoly/telescope-repo.nvim' + }, + opts = { + extensions = { + repo = { + list = { + search_dirs = { '~/repos' } + } + } + } + }, + init = function() + local telescope = require('telescope') + local builtin = require('telescope.builtin') + telescope.load_extension('repo') + vim.keymap.set('n', 'ff', builtin.find_files, {desc = 'Find files'}) + vim.keymap.set('n', 'fg', builtin.live_grep, {desc = 'Live grep'}) + vim.keymap.set('n', 'fb', builtin.buffers, {desc = 'List buffers'}) + vim.keymap.set('n', 'fh', builtin.help_tags, {desc = 'List help tags'}) + vim.keymap.set('n', 'fr', telescope.extensions.repo.list, {desc = 'List repos'}) + vim.keymap.set('n', 'fc', builtin.commands, {desc = 'List commands'}) + vim.keymap.set('n', 'fk', builtin.keymaps, {desc = 'List keymaps'}) + end + } +} diff --git a/nvim/lua/plugins/undotree.lua b/nvim/lua/plugins/undotree.lua new file mode 100644 index 0000000..2e8aad2 --- /dev/null +++ b/nvim/lua/plugins/undotree.lua @@ -0,0 +1,9 @@ +return { + { + 'mbbill/undotree', + init = function() + vim.g.undotree_WindowLayout = 4 + vim.keymap.set('n', 'tu', vim.cmd.UndotreeToggle, {desc = 'Toggle undo (undotree)'}) + end + } +} diff --git a/nvim/lua/plugins/which-key.lua b/nvim/lua/plugins/which-key.lua new file mode 100644 index 0000000..ca741e3 --- /dev/null +++ b/nvim/lua/plugins/which-key.lua @@ -0,0 +1,18 @@ +return { + { + "folke/which-key.nvim", + opts = { + spec = { + {'t', group = 'toggle'} + } + }, + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 500 + + vim.keymap.set('n', '?', function() + require("which-key").show({global = true}) + end, {desc = 'Global keymaps (which-key)'}) + end + } +} -- cgit v1.3.1