diff options
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/config/lazy.lua | 30 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/cmp.lua | 93 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/gruvbox_material.lua | 15 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lspconfig.lua | 5 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lualine.lua | 9 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/treesitter.lua | 13 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/vimtex.lua | 10 |
7 files changed, 0 insertions, 175 deletions
diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua deleted file mode 100644 index b2f67ca..0000000 --- a/.config/nvim/lua/config/lazy.lua +++ /dev/null @@ -1,30 +0,0 @@ --- 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 -require("lazy").setup({ - spec = { - -- import your plugins - { import = "plugins" }, - }, - -- Configure any other settings here. See the documentation for more details. - -- colorscheme that will be used when installing plugins. - install = { colorscheme = { "habamax" } }, - -- automatically check for plugin updates - checker = { enabled = true }, -}) - diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua deleted file mode 100644 index 7126173..0000000 --- a/.config/nvim/lua/plugins/cmp.lua +++ /dev/null @@ -1,93 +0,0 @@ -return { - { - "hrsh7th/nvim-cmp", - event = { "InsertEnter", "CmdlineEnter" }, -- Load on insert or cmdline mode - dependencies = { - "hrsh7th/cmp-nvim-lsp", -- LSP completion source - "hrsh7th/cmp-buffer", -- Buffer completion source - "hrsh7th/cmp-path", -- Path completion source - "hrsh7th/cmp-cmdline", -- Cmdline completion source - "L3MON4D3/LuaSnip", -- Snippet engine - "saadparwaiz1/cmp_luasnip", -- LuaSnip completion source - "rafamadriz/friendly-snippets", -- Predefined snippets - "onsails/lspkind.nvim", -- Icons for completion items - }, - config = function() - local cmp = require("cmp") - local luasnip = require("luasnip") - local lspkind = require("lspkind") - - -- Load friendly-snippets - require("luasnip.loaders.from_vscode").lazy_load() - - cmp.setup { - snippet = { - expand = function(args) - luasnip.lsp_expand(args.body) - end, - }, - mapping = cmp.mapping.preset.insert({ - ["<C-b>"] = cmp.mapping.scroll_docs(-4), -- Scroll up docs - ["<C-f>"] = cmp.mapping.scroll_docs(4), -- Scroll down docs - ["<C-Space>"] = cmp.mapping.complete(), -- Trigger completion - ["<CR>"] = cmp.mapping.confirm({ select = true }), -- Accept selection - ["<Tab>"] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - else - fallback() - end - end, { "i", "s" }), - ["<S-Tab>"] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - }), - sources = cmp.config.sources({ - { name = "nvim_lsp" }, -- LSP completions - { name = "luasnip" }, -- Snippet completions - { name = "buffer" }, -- Buffer completions - { name = "path" }, -- Path completions - }), - formatting = { - format = lspkind.cmp_format({ - mode = "symbol_text", -- Show symbol and text - maxwidth = 50, -- Limit width - ellipsis_char = "...", -- Truncation character - }), - }, - window = { - completion = cmp.config.window.bordered(), -- Bordered completion menu - documentation = cmp.config.window.bordered(), -- Bordered documentation window - }, - experimental = { - ghost_text = true, -- Show ghost text for inline completion - }, - } - - -- Command-line completion for `/` and `?` - cmp.setup.cmdline({ "/", "?" }, { - mapping = cmp.mapping.preset.cmdline(), - sources = { - { name = "buffer" }, - }, - }) - - -- Command-line completion for `:` - cmp.setup.cmdline(":", { - mapping = cmp.mapping.preset.cmdline(), - sources = cmp.config.sources({ - { name = "path" }, - { name = "cmdline" }, - }), - }) - end, - }, -} diff --git a/.config/nvim/lua/plugins/gruvbox_material.lua b/.config/nvim/lua/plugins/gruvbox_material.lua deleted file mode 100644 index 7858be6..0000000 --- a/.config/nvim/lua/plugins/gruvbox_material.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - { - 'sainnhe/gruvbox-material', - lazy = false, - priority = 1000, - config = function() - vim.g.gruvbox_material_background = "hard" -- hard/medium/soft - vim.g.gruvbox_material_foreground = "material" -- material/mix/original - vim.g.gruvbox_material_enable_italic = true - vim.g.gruvbox_material_disable_italic_comment = 0 - vim.g.gruvbox_material_better_performance = 1 - vim.cmd.colorscheme('gruvbox-material') - end - } -} diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua deleted file mode 100644 index 4742835..0000000 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - { - "neovim/nvim-lspconfig" - } -} diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua deleted file mode 100644 index 26e0f4b..0000000 --- a/.config/nvim/lua/plugins/lualine.lua +++ /dev/null @@ -1,9 +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/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index a6ffac9..0000000 --- a/.config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", - config = function() - local configs = require("nvim-treesitter.configs") - configs.setup({ - ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "elixir", "heex", "javascript", "html" }, - sync_install = false, - highlight = { enable = true }, - indent = { enable = true }, - }) - end -} diff --git a/.config/nvim/lua/plugins/vimtex.lua b/.config/nvim/lua/plugins/vimtex.lua deleted file mode 100644 index f14d0ea..0000000 --- a/.config/nvim/lua/plugins/vimtex.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - { - "lervag/vimtex", - ft = { "tex", "bib" }, - dependencies = { "nvim-treesitter/nvim-treesitter" }, - config = function() - vim.g.vimtex_view_method = "mupdf" - end - } -} |
