lag issue

This commit is contained in:
rohith 2025-02-13 21:30:26 +05:30
parent 2e38fab7d9
commit 6d55e4e3e8
1 changed files with 53 additions and 48 deletions

101
init.lua
View File

@ -519,10 +519,15 @@ require('lazy').setup({
config = function() config = function()
-- require('codeium').setup {} -- require('codeium').setup {}
vim.g.codeium_disable_bindings = 1
-- Change '<C-g>' here to any keycode you like. -- Change '<C-g>' here to any keycode you like.
vim.keymap.set('i', '<C-CR>', function() vim.keymap.set('i', '<C-CR>', function()
return vim.fn['codeium#Accept']() return vim.fn['codeium#Accept']()
end, { expr = true, silent = true }) end, { expr = true, silent = true })
-- vim.keymap.set('i', '<c-n>', function()
-- return vim.fn['codeium#CycleCompletions'](1)
-- end, { expr = true, silent = true })
vim.keymap.set('i', '<c-n>', function() vim.keymap.set('i', '<c-n>', function()
return vim.fn['codeium#CycleCompletions'](1) return vim.fn['codeium#CycleCompletions'](1)
end, { expr = true, silent = true }) end, { expr = true, silent = true })
@ -1081,54 +1086,54 @@ require('lazy').setup({
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects -- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
}, },
{ -- {
'nvim-tree/nvim-tree.lua', -- 'nvim-tree/nvim-tree.lua',
dependencies = { 'nvim-tree/nvim-web-devicons' }, -- Add the icon plugin as a dependency -- dependencies = { 'nvim-tree/nvim-web-devicons' }, -- Add the icon plugin as a dependency
config = function() -- config = function()
-- Disable netrw -- -- Disable netrw
vim.g.loaded_netrw = 1 -- vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 -- vim.g.loaded_netrwPlugin = 1
--
-- Enable 24-bit color support -- -- Enable 24-bit color support
vim.opt.termguicolors = true -- vim.opt.termguicolors = true
--
vim.keymap.set('n', '<leader>tn', ':NvimTreeToggle<CR>', { desc = 'Toggles File Explorer' }) -- vim.keymap.set('n', '<leader>tn', ':NvimTreeToggle<CR>', { desc = 'Toggles File Explorer' })
-- Setup nvim-tree with defaults -- -- Setup nvim-tree with defaults
-- require('nvim-tree').setup() -- -- require('nvim-tree').setup()
require('nvim-web-devicons').setup() -- require('nvim-web-devicons').setup()
--
require('nvim-tree').setup { -- require('nvim-tree').setup {
view = { -- view = {
width = 50, -- width = 50,
}, -- },
renderer = { -- renderer = {
icons = { -- icons = {
glyphs = { -- glyphs = {
default = '', -- Icon for files -- default = '', -- Icon for files
symlink = '', -- Symlink icon -- symlink = '', -- Symlink icon
folder = { -- folder = {
default = '', -- Closed folder icon -- default = '', -- Closed folder icon
open = '', -- Open folder icon -- open = '', -- Open folder icon
empty = '', -- Empty folder -- empty = '', -- Empty folder
empty_open = '', -- Open empty folder -- empty_open = '', -- Open empty folder
symlink = '', -- Symlink folder -- symlink = '', -- Symlink folder
symlink_open = '', -- Opened symlink folder -- symlink_open = '', -- Opened symlink folder
}, -- },
git = { -- git = {
unstaged = '', -- Icon for unstaged changes -- unstaged = '', -- Icon for unstaged changes
staged = 'S', -- Icon for staged changes -- staged = 'S', -- Icon for staged changes
unmerged = '', -- Icon for unmerged changes -- unmerged = '', -- Icon for unmerged changes
renamed = '', -- Icon for renamed files -- renamed = '➜', -- Icon for renamed files
untracked = 'U', -- Icon for untracked files -- untracked = 'U', -- Icon for untracked files
deleted = '', -- Icon for deleted files -- deleted = '', -- Icon for deleted files
ignored = '', -- Icon for ignored files -- ignored = '◌', -- Icon for ignored files
}, -- },
}, -- },
}, -- },
}, -- },
} -- }
end, -- end,
}, -- },
-- the following comments only work if you have downloaded the kickstart repo, not just copy pasted the -- the following comments only work if you have downloaded the kickstart repo, not just copy pasted the
-- init.lua. if you want these files, they are in the repository, so you can just download them and -- init.lua. if you want these files, they are in the repository, so you can just download them and
-- place them in the correct locations. -- place them in the correct locations.