diff options
| author | Christian Krinitsin <christian@krinitsin.xyz> | 2024-03-18 17:50:57 +0100 |
|---|---|---|
| committer | Christian Krinitsin <christian@krinitsin.xyz> | 2024-03-18 17:50:57 +0100 |
| commit | f4601e1dfc54cc2a2b25b42e185dd8ed9f13be19 (patch) | |
| tree | 496cb4d1266375396a34db1fb673562b838d919b /.config/nvim/lua/plugins | |
| parent | c6775b8032e2423f5e484505b277a7e0fdc9788a (diff) | |
| download | dotfiles-f4601e1dfc54cc2a2b25b42e185dd8ed9f13be19.tar.gz dotfiles-f4601e1dfc54cc2a2b25b42e185dd8ed9f13be19.zip | |
edited structure and added install script
Diffstat (limited to '.config/nvim/lua/plugins')
| -rw-r--r-- | .config/nvim/lua/plugins/appearance.lua | 28 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/autoclose.lua | 10 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/comment.lua | 21 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/everforest.lua | 12 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/git.lua | 18 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lspconfig.lua | 136 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/statusline.lua | 11 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/telescope.lua | 8 |
8 files changed, 0 insertions, 244 deletions
diff --git a/.config/nvim/lua/plugins/appearance.lua b/.config/nvim/lua/plugins/appearance.lua deleted file mode 100644 index 24012be..0000000 --- a/.config/nvim/lua/plugins/appearance.lua +++ /dev/null @@ -1,28 +0,0 @@ -return { - - { - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", - config = function () - require("nvim-treesitter.configs").setup({ - ensure_installed = { "c", "lua", "vim" }, - sync_install = false, - highlight = { enable = true }, - indent = { enable = true }, - }) - end - }, - - { - "norcalli/nvim-colorizer.lua", - config = function () - require 'colorizer'.setup() - end - }, - - { - "lukas-reineke/indent-blankline.nvim", - main = "ibl", - opts = {} - }, -} diff --git a/.config/nvim/lua/plugins/autoclose.lua b/.config/nvim/lua/plugins/autoclose.lua deleted file mode 100644 index 692f4e4..0000000 --- a/.config/nvim/lua/plugins/autoclose.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - - { - "m4xshen/autoclose.nvim", - config = function () - require("autoclose").setup() - end - } - -} diff --git a/.config/nvim/lua/plugins/comment.lua b/.config/nvim/lua/plugins/comment.lua deleted file mode 100644 index c37d7cd..0000000 --- a/.config/nvim/lua/plugins/comment.lua +++ /dev/null @@ -1,21 +0,0 @@ -return { - - { - "numToStr/Comment.nvim", - opts = { - -- Visual mappings - opleader = { - line = '<Space>/', - block = '<Space>?', - }, - - -- Normal mappings - toggler = { - line = '<Space>/', - block = '<Space>?', - } - }, - lazy = false - } - -} diff --git a/.config/nvim/lua/plugins/everforest.lua b/.config/nvim/lua/plugins/everforest.lua deleted file mode 100644 index 9b0b58a..0000000 --- a/.config/nvim/lua/plugins/everforest.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - - { - "neanias/everforest-nvim", - lazy = false, -- load during startup - priority = 1000, -- load before all the other start plugins - config = function() - vim.cmd([[colorscheme everforest]]) -- set colortheme - end, - } - -} diff --git a/.config/nvim/lua/plugins/git.lua b/.config/nvim/lua/plugins/git.lua deleted file mode 100644 index 4e09cd3..0000000 --- a/.config/nvim/lua/plugins/git.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - - { - "kdheepak/lazygit.nvim", - cmd = { - "LazyGit", - "LazyGitConfig", - "LazyGitCurrentFile", - "LazyGitFilter", - "LazyGitFilterCurrentFile", - }, - -- optional for floating window border decoration - dependencies = { - "nvim-lua/plenary.nvim", - }, - }, - -} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua deleted file mode 100644 index ce00009..0000000 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ /dev/null @@ -1,136 +0,0 @@ -local function border(hl_name) - return { - { "╭", hl_name }, - { "─", hl_name }, - { "╮", hl_name }, - { "│", hl_name }, - { "╯", hl_name }, - { "─", hl_name }, - { "╰", hl_name }, - { "│", hl_name }, - } -end - -return { - - { - "hrsh7th/cmp-nvim-lsp", - config = function() - require'cmp'.setup { - sources = { - { name = 'nvim_lsp' } - } - } - end - }, - - { - "neovim/nvim-lspconfig", - config = function() - require'lspconfig'.lua_ls.setup{ - capabilities = require('cmp_nvim_lsp').default_capabilities(), - settings = { Lua = { diagnostics = { globals = { 'vim', 'c2' } } } } - } - - require'lspconfig'.clangd.setup{ - capabilities = require('cmp_nvim_lsp').default_capabilities() - } - end, - }, - - { - "hrsh7th/nvim-cmp", - event = "InsertEnter", - dependencies = { - "hrsh7th/cmp-buffer", -- source for text in buffer - "hrsh7th/cmp-path", -- source for file system paths in commands - "L3MON4D3/LuaSnip", -- snippet engine - "saadparwaiz1/cmp_luasnip", -- for lua autocompletion - "rafamadriz/friendly-snippets", -- useful snippets library - "onsails/lspkind.nvim", -- vs-code like pictograms - }, - - config = function() - local cmp = require("cmp") - - local luasnip = require("luasnip") - - local lspkind = require("lspkind") - - -- loads vscode style snippets from installed plugins (e.g. friendly-snippets) - require("luasnip.loaders.from_vscode").lazy_load() - - cmp.setup({ - completion = { - completeopt = "menu,menuone,preview,noselect", - }, - - window = { - completion = { - border = border "CmpDocBorder", - winhighlight = "Normal:CmpDoc", - }, - documentation = { - border = border "CmpDocBorder", - winhighlight = "Normal:CmpDoc", - }, - }, - - snippet = { -- configure how nvim-cmp interacts with snippet engine - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - - mapping = cmp.mapping.preset.insert({ - ["<S-Tab>"] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif require("luasnip").jumpable(-1) then - vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-jump-prev", true, true, true), "") - else - fallback() - end - end, { "i", "s", }), - ["<Tab>"] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif require("luasnip").expand_or_jumpable() then - vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-expand-or-jump", true, true, true), "") - else - fallback() - end - end, { "i", "s", }), - ["<C-p>"] = cmp.mapping.select_prev_item(), -- previous suggestion - ["<C-n>"] = cmp.mapping.select_next_item(), -- next suggestion - ["<C-e>"] = cmp.mapping.abort(), -- close completion window - ["<CR>"] = cmp.mapping.confirm({ select = false }), - }), - - -- sources for autocompletion - sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, -- snippets - { name = "buffer" }, -- text within current buffer - { name = "path" }, -- file system paths - }), - - -- configure lspkind for vs-code like pictograms in completion menu - formatting = { - format = lspkind.cmp_format({ - maxwidth = 50, - ellipsis_char = "...", - }), - }, - }) - end, - }, - - { - "aznhe21/actions-preview.nvim", - config = function() - vim.keymap.set({ "v", "n" }, "<leader>an", require("actions-preview").code_actions) - end, - }, - -} diff --git a/.config/nvim/lua/plugins/statusline.lua b/.config/nvim/lua/plugins/statusline.lua deleted file mode 100644 index f065296..0000000 --- a/.config/nvim/lua/plugins/statusline.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - - { - "nvim-lualine/lualine.nvim", - dependencies = { 'nvim-tree/nvim-web-devicons' }, - config = function () - require('lualine').setup() - end - }, - -} diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 757fa90..0000000 --- a/.config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - - { - "nvim-telescope/telescope.nvim", tag = '0.1.6', - dependencies = { 'nvim-lua/plenary.nvim' } - } - -} |