diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | 6d4208a39ba4a576c310a301eb576d84eec1ddaf (patch) | |
| tree | beef17e3d6e88f08b68673d3d3e394d19639cd78 /.config/nvim/lua/plugin | |
| parent | d0f041df4db23a512fa2d2a7c655af0b2c7e88c5 (diff) | |
Entirely new config
Diffstat (limited to '.config/nvim/lua/plugin')
| -rw-r--r-- | .config/nvim/lua/plugin/autopairs.lua | 13 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/liveserver.lua | 13 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/lsp.lua | 13 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/lualine.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/neogen.lua | 19 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/packer.lua | 58 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/setup.lua | 64 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/telescope.lua | 7 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/treesitter.lua | 13 |
9 files changed, 60 insertions, 147 deletions
diff --git a/.config/nvim/lua/plugin/autopairs.lua b/.config/nvim/lua/plugin/autopairs.lua deleted file mode 100644 index ab924aa..0000000 --- a/.config/nvim/lua/plugin/autopairs.lua +++ /dev/null @@ -1,13 +0,0 @@ - -require("nvim-autopairs").setup { - fast_wrap = { - map = "<M-e>", - chars = { "<", "{", "[", "(", "\"", "'" }, - pattern = [=[[%"%"%>%]%)%}%,]]=], - end_key = "$", - keys = "qwertyuiopzxcvbnmasdfghjkl", - check_comma = true, - highlight = "Search", - highlight_grey="Comment" - } -} diff --git a/.config/nvim/lua/plugin/liveserver.lua b/.config/nvim/lua/plugin/liveserver.lua deleted file mode 100644 index 542a1fb..0000000 --- a/.config/nvim/lua/plugin/liveserver.lua +++ /dev/null @@ -1,13 +0,0 @@ -local status_ok, live_server = pcall(require, "live_server") -if not status_ok then - return -end - -live_server.setup({ - port = 8080, - browser_command = "", -- Empty string starts up with default browser - quiet = false, - no_css_inject = false, -- Disables css injection if true, might be useful when testing out tailwindcss - install_path = vim.fn.stdpath "config" .. "/live-server/", -}) - diff --git a/.config/nvim/lua/plugin/lsp.lua b/.config/nvim/lua/plugin/lsp.lua index 88d5c91..6563a6f 100644 --- a/.config/nvim/lua/plugin/lsp.lua +++ b/.config/nvim/lua/plugin/lsp.lua @@ -7,19 +7,6 @@ lsp.ensure_installed { "lua_ls", "clangd", "cmake", - "rust_analyzer", - "omnisharp" -} - -lspconfig.gdscript.setup {} - -lspconfig.omnisharp.setup { - cmd = { - "/usr/bin/omnisharp", - "--languageserver", - "--hostPID", - tostring(vim.fn.getpid()) - } } local cmp = require("cmp") diff --git a/.config/nvim/lua/plugin/lualine.lua b/.config/nvim/lua/plugin/lualine.lua deleted file mode 100644 index 81071ec..0000000 --- a/.config/nvim/lua/plugin/lualine.lua +++ /dev/null @@ -1,7 +0,0 @@ - -require("lualine").setup { - options = { - component_separators = { left = "", right = "" }, - section_separators = { left = "", right = "" }, - }, -} diff --git a/.config/nvim/lua/plugin/neogen.lua b/.config/nvim/lua/plugin/neogen.lua deleted file mode 100644 index 512af71..0000000 --- a/.config/nvim/lua/plugin/neogen.lua +++ /dev/null @@ -1,19 +0,0 @@ -local neogen = require("neogen") - -neogen.setup { - snippet_engine = "luasnip", - languages = { - cs = { - template = { - annotation_convention = "xmldoc", - }, - }, - }, -} - -local opts = { - silent = true, -} - -vim.keymap.set("n", "<leader>df", ":Neogen<CR>", opts) - diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua index d623de8..a2ac451 100644 --- a/.config/nvim/lua/plugin/packer.lua +++ b/.config/nvim/lua/plugin/packer.lua @@ -1,21 +1,17 @@ return require("packer").startup(function(use) - use "wbthomason/packer.nvim" - use "christoomey/vim-tmux-navigator" - - use { - "nvim-tree/nvim-tree.lua", - requires = "kyazdani42/nvim-web-devicons" - } - + use { "wbthomason/packer.nvim" } + use { "nvim-telescope/telescope.nvim", - requires = { { "nvim-lua/plenary.nvim" } } + requires = { + { "nvim-lua/plenary.nvim" } + }, } - use { "majutsushi/tagbar" } use { "Yggdroot/indentLine" } use { "windwp/nvim-autopairs" } use { "airblade/vim-gitgutter" } + use { "folke/trouble.nvim", requires = { @@ -23,37 +19,10 @@ return require("packer").startup(function(use) } } - use { - "aurum77/live-server.nvim", - run = function() - require"live_server.util".install() - end, - cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" }, - } - - use { - "utilyre/barbecue.nvim", - tag = "*", - requires = { - "SmiteshP/nvim-navic", - "nvim-tree/nvim-web-devicons", -- optional dependency - }, - after = "nvim-web-devicons", -- keep this if you're using NvChad - config = function() - require("barbecue").setup() - end, - } - use { "tpope/vim-fugitive" } - use { "mhinz/vim-startify" } - use { "DanilaMihailov/beacon.nvim" } - use { - "nvim-lualine/lualine.nvim", - requires = { "kyazdani42/nvim-web-devicons", opt = true } - } use { "numToStr/Comment.nvim" } use { "HiPhish/nvim-ts-rainbow2" } - + use { "VonHeikemen/lsp-zero.nvim", requires = { @@ -75,20 +44,12 @@ return require("packer").startup(function(use) {"rafamadriz/friendly-snippets"}, } } - use "tikhomirov/vim-glsl" - use { "kosayoda/nvim-lightbulb" } + use { "tikhomirov/vim-glsl" } use { "michaeljsmith/vim-indent-object" } use { - "loctvl842/monokai-pro.nvim", - config = function() - vim.cmd("colorscheme monokai-pro-spectrum") - end - } - - use { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" } @@ -97,7 +58,4 @@ return require("packer").startup(function(use) "danymat/neogen", requires = "nvim-treesitter/nvim-treesitter" } - - use("nvim-treesitter/playground") end) - diff --git a/.config/nvim/lua/plugin/setup.lua b/.config/nvim/lua/plugin/setup.lua index 4d01374..4cce77b 100644 --- a/.config/nvim/lua/plugin/setup.lua +++ b/.config/nvim/lua/plugin/setup.lua @@ -1,15 +1,55 @@ - require("Comment").setup {} -require("nvim-lightbulb").setup({ - autocmd = { enabled = true } -}) -require("nvim-tree").setup { + +require("nvim-autopairs").setup { + fast_wrap = { + map = "<M-e>", + chars = { "<", "{", "[", "(", "\"", "'" }, + pattern = [=[[%"%"%>%]%)%}%,]]=], + end_key = "$", + keys = "qwertyuiopzxcvbnmasdfghjkl", + check_comma = true, + highlight = "Search", + highlight_grey="Comment" + } +} + +local neogen = require("neogen") + +neogen.setup { + snippet_engine = "luasnip", + languages = { + cs = { + template = { + annotation_convention = "xmldoc", + }, + }, + }, +} + +local opts = { + silent = true, +} + +vim.keymap.set("n", "<leader>df", "<CMD>Neogen<CR>", opts) + +require("nvim-treesitter.configs").setup { + ensure_installed = { "c", "rust", "lua", "vimdoc" }, + sync_install = false, + highlight = { + enable = true, + additional_vim_regex_highlighting = true, + }, + indent = { enable = false }, + rainbow = { + enable = true, + } } -require("plugin.liveserver") -require("plugin.treesitter") -require("plugin.telescope") -require("plugin.autopairs") -require("plugin.lualine") -require("plugin.lsp") -require("plugin.neogen") +do + local builtin = require("telescope.builtin") + vim.keymap.set("n", "<leader>ff", builtin.find_files, {}) + vim.keymap.set("n", "<leader>fg", builtin.git_files, {}) + vim.keymap.set("n", "<leader>fs", function() + builtin.grep_string({ search = vim.fn.input("grep>") }) + end) +end diff --git a/.config/nvim/lua/plugin/telescope.lua b/.config/nvim/lua/plugin/telescope.lua deleted file mode 100644 index d5bea56..0000000 --- a/.config/nvim/lua/plugin/telescope.lua +++ /dev/null @@ -1,7 +0,0 @@ -local builtin = require("telescope.builtin") -vim.keymap.set("n", "<leader>ff", builtin.find_files, {}) -vim.keymap.set("n", "<leader>fg", builtin.git_files, {}) -vim.keymap.set("n", "<leader>fs", function() - builtin.grep_string({ search = vim.fn.input("grep>") }) -end) - diff --git a/.config/nvim/lua/plugin/treesitter.lua b/.config/nvim/lua/plugin/treesitter.lua deleted file mode 100644 index e14a975..0000000 --- a/.config/nvim/lua/plugin/treesitter.lua +++ /dev/null @@ -1,13 +0,0 @@ -require("nvim-treesitter.configs").setup { - ensure_installed = { "c", "rust", "lua", "vimdoc" }, - sync_install = false, - highlight = { - enable = true, - additional_vim_regex_highlighting = true, - }, - indent = { enable = false }, - rainbow = { - enable = true, - } -} - |
