sigma sgima

This commit is contained in:
megawonzz9 2025-09-08 11:05:58 +02:00
parent abb301f2ab
commit 5b10a1093c
11 changed files with 79 additions and 44 deletions

View File

@ -168,6 +168,11 @@ vim.opt.confirm = true
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
-- OIL NVIM
vim.keymap.set('n', '<leader>e', '<cmd>Oil<CR>', { desc = 'Open file explorer' })
vim.keymap.set('n', '-', '<cmd>Oil<CR>', { desc = 'Open file explorer' })
-- Clear highlights on search when pressing <Esc> in normal mode
-- See `:help hlsearch`
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
@ -183,11 +188,14 @@ vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagn
-- or just use <C-\><C-n> to exit terminal mode
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
vim.keymap.set('n', '[c', function()
require('treesitter-context').go_to_context(vim.v.count1)
end, { silent = true, desc = 'Jump to top of current function' })
-- TIP: Disable arrow keys in normal mode
-- vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
-- vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
-- vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
-- vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows
@ -723,7 +731,7 @@ require('lazy').setup({
require('mason-lspconfig').setup {
ensure_installed = {}, -- explicitly set to an empty table (Kickstart populates installs via mason-tool-installer)
automatic_installation = false,
automatic_installation = true,
handlers = {
function(server_name)
local server = servers[server_name] or {}
@ -857,7 +865,7 @@ require('lazy').setup({
completion = {
-- By default, you may press `<c-space>` to show the documentation.
-- Optionally, set `auto_show = true` to show the documentation after a delay.
documentation = { auto_show = false, auto_show_delay_ms = 500 },
documentation = { auto_show = true, auto_show_delay_ms = 500 },
},
sources = {
@ -988,7 +996,6 @@ require('lazy').setup({
require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.lint',
require 'kickstart.plugins.autopairs',
require 'kickstart.plugins.neo-tree',
require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
@ -1024,5 +1031,6 @@ require('lazy').setup({
},
})
vim.api.nvim_set_hl(0, 'BlinkCmpKindCopilot', { fg = '#6CC644' })
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et

View File

@ -0,0 +1,8 @@
return {
{
'saghen/blink.compat',
version = '*',
lazy = true,
opts = {},
},
}

View File

@ -1,6 +0,0 @@
return {
'vyfor/cord.nvim',
build = ':Cord update',
-- opts = {}
}

View File

@ -0,0 +1,6 @@
return {
'm4xshen/hardtime.nvim',
lazy = false,
dependencies = { 'MunifTanjim/nui.nvim' },
opts = {},
}

View File

@ -0,0 +1,14 @@
return {
'jay-babu/mason-nvim-dap.nvim',
dependencies = {
'williamboman/mason.nvim',
'mfussenegger/nvim-dap',
},
config = function()
require('mason-nvim-dap').setup {
ensure_installed = { 'codelldb' },
automatic_installation = true,
handlers = {},
}
end,
}

View File

@ -0,0 +1,10 @@
return {
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if you prefer nvim-web-devicons
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
}

View File

@ -9,5 +9,9 @@ return {
desc = 'Open Snipe buffer menu',
},
},
opts = {},
opts = {
ui = {
position = 'center',
},
},
}

View File

@ -1,6 +1,5 @@
return {
{
'nvim-treesitter/nvim-treesitter-context',
lazy = false,
},
opts = { mode = 'cursor', max_lines = 3 },
dependencies = { 'nvim-treesitter/nvim-treesitter' },
}

View File

@ -1,3 +1,4 @@
return {
'ThePrimeagen/vim-be-good',
event = 'VeryLazy',
}

View File

@ -4,5 +4,21 @@
return {
'windwp/nvim-autopairs',
event = 'InsertEnter',
opts = {},
opts = {
check_ts = true, -- use Treesitter for smart pairing
},
config = function(_, opts)
local npairs = require 'nvim-autopairs'
npairs.setup(opts)
-- Add custom rule for < > in Rust
local Rule = require 'nvim-autopairs.rule'
npairs.add_rules {
Rule('<', '>', 'rust'):with_pair(function(opts)
local next_char = opts.line:sub(opts.col + 1, opts.col + 1)
return next_char ~= '=' -- avoid pairing in things like <=
end),
}
end,
}

View File

@ -1,25 +0,0 @@
-- Neo-tree is a Neovim plugin to browse the file system
-- https://github.com/nvim-neo-tree/neo-tree.nvim
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
cmd = 'Neotree',
keys = {
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
},
opts = {
filesystem = {
window = {
mappings = {
['\\'] = 'close_window',
},
},
},
},
}