aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugin
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 10:00:42 -0500
committerXander Swan <email>2025-12-03 10:00:42 -0500
commit4f79d3ae111059496c5e194f4b0e63796b5b4151 (patch)
tree7a3595e19b2dc8dfe09b0677941f32cb8a52d6d4 /.config/nvim/lua/plugin
parent188d14e5b2524a7c48dfe176cbb2d7c8b116650d (diff)
misc idk
Diffstat (limited to '.config/nvim/lua/plugin')
-rw-r--r--.config/nvim/lua/plugin/packer.lua35
-rw-r--r--.config/nvim/lua/plugin/setup.lua120
2 files changed, 16 insertions, 139 deletions
diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua
index 0ed86bc..961af13 100644
--- a/.config/nvim/lua/plugin/packer.lua
+++ b/.config/nvim/lua/plugin/packer.lua
@@ -1,9 +1,6 @@
return require("packer").startup(function(use)
use {"wbthomason/packer.nvim"}
-
- use {"andweeb/presence.nvim"}
-
- use {"hobby-engine/hobby-script-vim"}
+ use {"windwp/nvim-autopairs"}
use {
"nvim-telescope/telescope.nvim",
@@ -12,27 +9,8 @@ return require("packer").startup(function(use)
},
}
- use {"windwp/nvim-autopairs"}
-
- use {
- "folke/trouble.nvim",
- requires = {
- { "nvim-tree/nvim-web-devicons"},
- }
- }
-
- use {
- "nvim-lualine/lualine.nvim",
- requires = { "nvim-tree/nvim-web-devicons", opt = true }
- }
-
use {"lewis6991/gitsigns.nvim"}
- -- use {"tpope/vim-fugitive"}
use {"numToStr/Comment.nvim"}
- use {"HiPhish/nvim-ts-rainbow2"}
-
- use {"xiyaowong/transparent.nvim"}
- use {"xiyaowong/virtcolumn.nvim"}
use {"williamboman/mason.nvim"}
use {"neovim/nvim-lspconfig"}
@@ -42,21 +20,10 @@ return require("packer").startup(function(use)
use {"hrsh7th/cmp-nvim-lsp"}
use {"hrsh7th/cmp-nvim-lua"}
- use {"stevearc/oil.nvim"}
-
- use {"tikhomirov/vim-glsl"}
-
use {"michaeljsmith/vim-indent-object"}
use {
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate"
}
-
- use {"loctvl842/monokai-pro.nvim"}
-
- use {
- "danymat/neogen",
- requires = "nvim-treesitter/nvim-treesitter"
- }
end)
diff --git a/.config/nvim/lua/plugin/setup.lua b/.config/nvim/lua/plugin/setup.lua
index 5a3ae43..ca2be66 100644
--- a/.config/nvim/lua/plugin/setup.lua
+++ b/.config/nvim/lua/plugin/setup.lua
@@ -1,68 +1,9 @@
-vim.g.virtcolumn_char = '|'
-
-require('gitsigns').setup {}
+---@diagnostic disable: undefined-global
+require("gitsigns").setup {}
require("Comment").setup {}
-
require("mason").setup {}
-require("oil").setup {
- view_options = {
- show_hidden = true,
- },
-}
-
-require("presence").setup {}
-
-local colors = {
- white = "#FFFFFF",
- gray = "#A0A0A0",
- green = "#22CC55",
- pink = "#FF4499",
- bg = "#222222",
-}
-
-local theme = {
- normal = {
- a = {bg = colors.white, fg = colors.black, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- },
- insert = {
- a = {bg = colors.pink, fg = colors.white, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- },
- visual = {
- a = {bg = colors.green, fg = colors.white, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- },
- replace = {
- a = {bg = colors.pink, fg = colors.white, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- },
- command = {
- a = {bg = colors.gray, fg = colors.black, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- },
- inactive = {
- a = {bg = colors.pink, fg = colors.white, gui = 'bold,italic'},
- b = {bg = colors.bg, fg = colors.white},
- c = {bg = colors.bg, fg = colors.white}
- }
-}
-
-require("lualine").setup {
- options = {
- theme = theme,
- component_separators = { left = "", right = "" },
- section_separators = { left = "", right = "" },
- },
-}
-
require("nvim-autopairs").setup {
fast_wrap = {
map = "<M-e>",
@@ -76,58 +17,27 @@ require("nvim-autopairs").setup {
}
}
-local neogen = require("neogen")
-
-neogen.setup {
- snippet_engine = "luasnip",
-}
-
-vim.keymap.set("n", "<leader>df", "<CMD>Neogen<CR>", {
- silent = true,
-})
-
require("nvim-treesitter.configs").setup {
- ensure_installed = { "c", "cpp", "lua", "vimdoc" },
+ ensure_installed = { "c", "lua", "vimdoc" },
sync_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = true,
},
- indent = { enable = true },
+ indent = {enable = true},
}
-vim.filetype.add({
- extension = {
- c3 = "c3",
- c3i = "c3",
- c3t = "c3",
- },
-})
-
-local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
-parser_config.c3 = {
- install_info = {
- url = "https://github.com/c3lang/tree-sitter-c3",
- files = {"src/parser.c", "src/scanner.c"},
- branch = "main",
- },
-}
-
-do
- local builtin = require("telescope.builtin")
- require("telescope").setup {
- pickers = {
- find_files = {
- theme = "dropdown",
- }
+local builtin = require("telescope.builtin")
+require("telescope").setup {
+ pickers = {
+ find_files = {
+ theme = "dropdown",
}
}
+}
- vim.keymap.set("n", "<C-o>", builtin.find_files, {})
- vim.keymap.set("n", "<C-g>", builtin.git_files, {})
- vim.keymap.set("n", "<C-f>", function()
- builtin.grep_string({ search = vim.fn.input("grep>") })
- end)
-end
-
-vim.keymap.set("n", "<leader>i", "<CMD>TroubleToggle<CR>")
+vim.keymap.set("n", "<C-o>", builtin.find_files, {})
+vim.keymap.set("n", "<C-g>", builtin.git_files, {})
+vim.keymap.set("n", "<C-f>", function()
+ builtin.grep_string({ search = vim.fn.input("grep>") })
+end)