diff options
| author | simon <vesspa0330@gmail.com> | 2026-10-25 13:43:10 -0500 |
|---|---|---|
| committer | simon <vesspa0330@gmail.com> | 2026-10-25 13:43:10 -0500 |
| commit | 3c45a0af5e933a7b432a4a1022bcb5bca9bfa4f2 (patch) | |
| tree | 11934766efeb98d4047489417b2d09660920c3dc /nvim | |
| parent | 4d2c37fe27dd73ca1f101c3d290881d53c83ce57 (diff) | |
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 105 | ||||
| -rw-r--r-- | nvim/windows-init.lua | 105 |
2 files changed, 0 insertions, 210 deletions
diff --git a/nvim/init.lua b/nvim/init.lua deleted file mode 100644 index d690307..0000000 --- a/nvim/init.lua +++ /dev/null @@ -1,105 +0,0 @@ --- plugins -- -vim.pack.add({ - 'https://github.com/AlphaTechnolog/pywal.nvim', - 'https://github.com/stevearc/oil.nvim', - 'https://github.com/nvim-mini/mini.move', - 'https://github.com/nvim-mini/mini.icons', - 'https://github.com/nvim-mini/mini.surround', - 'https://github.com/ibhagwan/fzf-lua', - 'https://github.com/nvim-treesitter/nvim-treesitter', - { src = 'https://github.com/Saghen/blink.cmp', version = 'v1.10.2' }, -}) - -require("pywal").setup() -require("oil").setup() -require("mini.move").setup() -require("mini.icons").setup() ---[[ require("mini.surround").setup({ - -- Module mappings. Use `''` (empty string) to disable one. - mappings = { - add = '<S-sa>', -- Add surrounding in Normal and Visual modes - delete = '<S-sd>', -- Delete surrounding - find = '<S-sf>', -- Find surrounding (to the right) - find_left = '<S-sF>', -- Find surrounding (to the left) - highlight = '<S-sh>', -- Highlight surrounding - replace = '<S-sr>', -- Replace surrounding - - suffix_last = 'l', -- Suffix to search with "prev" method - suffix_next = 'n', -- Suffix to search with "next" method - }, -}) ---]] -require("fzf-lua").setup() -require("blink.cmp").setup() -require("nvim-treesitter").setup() - -vim.loader.enable() -- speed up launch! - - --- treesitter - dynamically determine language -vim.api.nvim_create_autocmd("FileType", { - group = vim.api.nvim_create_augroup("tree-sitter-enable", { clear = true }), - callback = function(args) - local lang = vim.treesitter.language.get_lang(args.match) - if not lang then - return - end - if vim.treesitter.query.get(lang, "highlights") then - vim.treesitter.start(args.buf) - end - if vim.treesitter.query.get(lang, "indents") then - vim.opt_local.indentexpr = 'v:lua.require("nvim-treesitter").indentexpr()' - end - - -- from treesitter docs for folding - vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' - vim.opt.foldmethod = 'expr' - end, -}) - --- blink completion stuff - - - --- normal mode -vim.api.nvim_set_keymap('i','jk','<Esc>',{noremap=true,silent=true}) -vim.api.nvim_set_keymap('i','kj','<Esc>',{noremap=true,silent=true}) - --- ui -vim.opt.foldlevelstart = 99 -vim.o.scrolloff = 10 -vim.o.number = true -vim.o.relativenumber = true -vim.o.showmode = false -vim.o.signcolumn = "yes" -vim.o.pumheight = 15 -vim.o.shortmess = "CFOSWaco" - --- completion -vim.o.autocomplete = true -vim.o.completeopt = "menuone,noinsert,popup,fuzzy,nearest" -vim.o.pumheight = 15 -vim.o.pummaxwidth = 40 - --- indents -vim.o.tabstop = 2 -vim.o.shiftwidth = 2 - --- search -vim.o.imsearch = 0 -vim.o.hlsearch = true -vim.o.incsearch = true -vim.o.ignorecase = true -vim.o.smartcase = true - -local map = vim.keymap.set - --- KEYMAPS - for plugins -map("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) - - --- KEYMAPS - movement -map("n", "<C-d>", "<C-d>zz") -map("n", "<C-u>", "<C-u>zz") -map("n", "<C-f>", "<C-f>zz") -map("n", "<C-b>", "<C-b>zz") diff --git a/nvim/windows-init.lua b/nvim/windows-init.lua deleted file mode 100644 index 95b3b09..0000000 --- a/nvim/windows-init.lua +++ /dev/null @@ -1,105 +0,0 @@ --- WINDOWS SHELL COMPATIBILITY (needed for sf.nvim command runner) -if vim.fn.has("win32") == 1 then - vim.opt.shell = "cmd.exe" - vim.opt.shellcmdflag = "/s /c" - vim.opt.shellquote = "" - vim.opt.shellxquote = '"' -- Crucial for handling quotes and && properly in cmd -end - --- plugins -- -vim.pack.add({ - 'https://github.com/stevearc/oil.nvim', - 'https://github.com/nvim-mini/mini.move', - 'https://github.com/nvim-mini/mini.icons', - 'https://github.com/ibhagwan/fzf-lua', - 'https://github.com/xixiaofinland/sf.nvim', - 'https://github.com/nvim-treesitter/nvim-treesitter', - -- [completion] --------------------------------------------------------------- - { src = "https://github.com/Saghen/blink.cmp", version = vim.version.range('v1.10.2') }, - -}) - -require("oil").setup() -require("mini.move").setup() -require("mini.icons").setup() -require("fzf-lua").setup() -require("nvim-treesitter").setup() -require("blink.cmp").setup() -require("sf").setup({ - types_to_retrieve = { - "ApexClass", - "ApexTrigger", - "CustomPermission", - "CustomApplication", - "CustomMetadata", - "CustomSetting", - "CustomTab", - "CustomObject", - "Flow", - "FlowDefinition", - "Layout", - "LightningComponentBundle", - "PermissionSetGroup", - "PermissionSet", - "Profile", - "StaticResource", - "SharingRule" - }, -}) - -vim.loader.enable() -- speed up launch! - - --- treesitter - dynamically determine language -vim.api.nvim_create_autocmd("FileType", { - group = vim.api.nvim_create_augroup("tree-sitter-enable", { clear = true }), - callback = function(args) - local lang = vim.treesitter.language.get_lang(args.match) - if not lang then - return - end - if vim.treesitter.query.get(lang, "highlights") then - vim.treesitter.start(args.buf) - end - if vim.treesitter.query.get(lang, "indents") then - vim.opt_local.indentexpr = 'v:lua.require("nvim-treesitter").indentexpr()' - end - - -- from treesitter docs for folding - vim.opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()' - vim.opt.foldmethod = 'expr' - end, -}) - - --- normal mode -vim.api.nvim_set_keymap('i','jk','<Esc>',{noremap=true,silent=true}) -vim.api.nvim_set_keymap('i','kj','<Esc>',{noremap=true,silent=true}) - --- ui -vim.opt.foldlevelstart = 99 -vim.o.scrolloff = 10 -vim.o.number = true -vim.o.relativenumber = true -vim.o.showmode = false -vim.o.signcolumn = "yes" -vim.o.pumheight = 15 -vim.o.shortmess = "CFOSWaco" - --- search -vim.o.imsearch = 0 -vim.o.hlsearch = true -vim.o.incsearch = true -vim.o.ignorecase = true -vim.o.smartcase = true - -local map = vim.keymap.set - --- KEYMAPS - for plugins -map("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" }) - --- KEYMAPS - movement -map("n", "<C-d>", "<C-d>zz") -map("n", "<C-u>", "<C-u>zz") -map("n", "<C-f>", "<C-f>zz") -map("n", "<C-b>", "<C-b>zz") |
