aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim-raw/lua/config
diff options
context:
space:
mode:
authordacctal <dacctalyt@gmail.com>2026-04-19 15:58:03 +0000
committerdacctal <dacctalyt@gmail.com>2026-04-19 15:58:03 +0000
commit2e6e6d04b2c24a0666b015ef4f73718e2fe7c861 (patch)
tree51ee086d8e075d0d01ce01a1855058f95ecdf74d /.config/nvim-raw/lua/config
parentd19b491454c9f793d2e311dd09f70a88240dda29 (diff)
added vis and nvim-12+ configs
Diffstat (limited to '.config/nvim-raw/lua/config')
-rwxr-xr-x.config/nvim-raw/lua/config/keymaps.lua13
-rwxr-xr-x.config/nvim-raw/lua/config/options.lua40
-rw-r--r--.config/nvim-raw/lua/config/plugins.lua97
3 files changed, 150 insertions, 0 deletions
diff --git a/.config/nvim-raw/lua/config/keymaps.lua b/.config/nvim-raw/lua/config/keymaps.lua
new file mode 100755
index 0000000..e2987bc
--- /dev/null
+++ b/.config/nvim-raw/lua/config/keymaps.lua
@@ -0,0 +1,13 @@
+localopts = { noremap = true, silent = true }
+
+vim.g.mapleader = " "
+vim.g.maplocalleader = " "
+
+vim.keymap.set({"n", "v"}, "y", '"+y', { noremap = true, silent = true })
+
+vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv", { desc = "moves lines down in visual selection" })
+vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv", { desc = "moves lines up in visual selection" })
+
+vim.keymap.set("n", "<leader>al", "<CMD>term<CR>", { desc = "Open terminal" })
+
+vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
diff --git a/.config/nvim-raw/lua/config/options.lua b/.config/nvim-raw/lua/config/options.lua
new file mode 100755
index 0000000..dac7c76
--- /dev/null
+++ b/.config/nvim-raw/lua/config/options.lua
@@ -0,0 +1,40 @@
+vim.cmd("let g:netrw_banner = 0")
+vim.cmd("set termguicolors")
+
+vim.opt.guicursor = ""
+vim.opt.nu = true
+vim.opt.relativenumber = false
+
+vim.opt.tabstop = 2
+vim.opt.softtabstop = 2
+vim.opt.shiftwidth = 2
+vim.opt.expandtab = true
+vim.opt.autoindent = true
+vim.opt.smartindent = true
+vim.opt.wrap = true
+
+vim.opt.swapfile = false
+vim.opt.backup = false
+vim.opt.undofile = true
+
+vim.opt.incsearch = true
+vim.opt.inccommand = "split"
+vim.opt.ignorecase = true
+vim.opt.smartcase = true
+
+vim.opt.termguicolors = true
+vim.opt.background = "dark"
+vim.opt.scrolloff = 8
+vim.opt.signcolumn = "yes"
+
+vim.opt.backspace = { "start", "eol", "indent" }
+
+vim.opt.splitright = true
+vim.opt.splitbelow = true
+
+vim.opt.hlsearch = true
+
+vim.opt.mouse = "a"
+vim.g.editorconfig = true
+
+vim.g.markdown_folding = 1
diff --git a/.config/nvim-raw/lua/config/plugins.lua b/.config/nvim-raw/lua/config/plugins.lua
new file mode 100644
index 0000000..f0b7619
--- /dev/null
+++ b/.config/nvim-raw/lua/config/plugins.lua
@@ -0,0 +1,97 @@
+vim.pack.add {
+ 'https://github.com/ollykel/v-vim',
+ 'https://github.com/hrsh7th/nvim-cmp',
+ 'https://github.com/saghen/blink.cmp',
+ 'https://github.com/alaviss/nim.nvim',
+ 'https://github.com/stevearc/oil.nvim',
+ 'https://github.com/folke/trouble.nvim',
+ 'https://github.com/nvim-mini/mini.nvim',
+ 'https://github.com/jiaoshijie/undotree',
+ 'https://github.com/thePrimeagen/harpoon',
+ 'https://github.com/hrsh7th/cmp-nvim-lsp',
+ 'https://github.com/mason-org/mason.nvim',
+ 'https://github.com/nvim-orgmode/orgmode',
+ 'https://github.com/windwp/nvim-autopairs',
+ 'https://github.com/neovim/nvim-lspconfig',
+ 'https://github.com/nvim-lua/plenary.nvim',
+ 'https://github.com/mfussenegger/nvim-lint',
+ 'https://github.com/akinsho/org-bullets.nvim',
+ 'https://github.com/nvim-lualine/lualine.nvim',
+ 'https://github.com/norcalli/nvim-colorizer.lua',
+ 'https://github.com/nvim-tree/nvim-web-devicons',
+ 'https://github.com/rafamadriz/friendly-snippets',
+ 'https://github.com/nvim-telescope/telescope.nvim',
+ 'https://github.com/mason-org/mason-lspconfig.nvim',
+ 'https://github.com/nvim-treesitter/nvim-treesitter',
+ 'https://github.com/brenoprata10/nvim-highlight-colors',
+ 'https://github.com/antosha417/nvim-lsp-file-operations',
+ 'https://github.com/nvim-telescope/telescope-ui-select.nvim',
+ 'https://github.com/MeanderingProgrammer/render-markdown.nvim',
+}
+
+-- vlang
+--vim.lsp.config.vlang.setup({})
+
+-- oil
+require("oil").setup({ default_file_explorer = true,
+ columns = {},
+ keymaps = {
+ ["q"] = "actions.close",
+ },
+ delete_to_trash = true,
+ view_options = {
+ show_hidden = true,
+ },
+ skip_confirm_for_simple_edits = true,
+})
+vim.keymap.set("n", "<leader>fm", "<CMD>Oil<CR>", { desc = "Open parent directory" })
+
+-- harpoon
+vim.keymap.set("n", "<leader>ad", function()
+ harpoon:list():add()
+end, { desc = "Harpoon add file" })
+vim.keymap.set("n", "<C-e>", function()
+ harpoon.ui:toggle_quick_menu(harpoon:list())
+end)
+
+-- mason
+require("mason").setup({
+ opts = {
+ ui = {
+ icons = {
+ package_installed = "*",
+ package_pending = ">",
+ package_uninstalled = "x"
+ }
+ }
+ }
+})
+
+-- autopairs
+require("nvim-autopairs").setup({
+ check_ts = true,
+ ts_config = {
+ lua = { "string" },
+ javascript = { "template_string" },
+ java = false,
+ },
+})
+
+-- lspconfig
+vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
+vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
+vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
+
+-- lualine
+require('lualine').setup {
+ options = {
+ icons_enabled = true,
+ theme = 'auto',
+ }
+}
+
+-- colorizer
+require("colorizer").setup()
+
+-- mason-lspconfig
+require("mason-lspconfig").setup()