Skip to content

Commit 8867ca7

Browse files
winderimkarmadev
authored andcommitted
Remove two because there are more than two. (nvim-lua#1213)
1 parent be678aa commit 8867ca7

File tree

1 file changed

+53
-10
lines changed

1 file changed

+53
-10
lines changed

init.lua

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102
vim.opt.number = true
103103
-- You can also add relative line numbers, to help with jumping.
104104
-- Experiment for yourself to see if you like it!
105-
-- vim.opt.relativenumber = true
105+
vim.opt.relativenumber = true
106106

107107
-- Enable mouse mode, can be useful for resizing splits for example!
108108
vim.opt.mouse = 'a'
@@ -215,7 +215,11 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
215215
end
216216
end ---@diagnostic disable-next-line: undefined-field
217217
vim.opt.rtp:prepend(lazypath)
218-
218+
-- User comands
219+
vim.api.nvim_create_user_command('ZellijFloatPanel', function()
220+
vim.fn.system 'zellij action new-pane -f'
221+
end, { desc = 'Open Zellij Float Panel' })
222+
vim.keymap.set('n', '<leader>pf', ':ZellijFloatPanel<CR>', { desc = '[P]anel Float' })
219223
-- [[ Configure and install plugins ]]
220224
--
221225
-- To check the current status of your plugins, run
@@ -317,12 +321,18 @@ require('lazy').setup({
317321
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
318322
{ '<leader>d', group = '[D]ocument' },
319323
{ '<leader>r', group = '[R]ename' },
320-
{ '<leader>s', group = '[S]earch' },
321-
{ '<leader>w', group = '[W]orkspace' },
322324
{ '<leader>t', group = '[T]oggle' },
323325
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
326+
{ '<leader>s', group = '[S]earch' },
327+
{ '<leader>w', group = '[W]orkspace' },
328+
{ '<leader>p', group = '[P]anel' },
324329
},
325330
},
331+
-- config = function()
332+
-- require('which-key').setup {}
333+
--
334+
-- vim.keymap.set('n', '<leader>pf', ':ZellijFloatPanel<CR>', { desc = '[P]anel Float' })
335+
-- end,
326336
},
327337

328338
-- NOTE: Plugins can specify dependencies.
@@ -388,6 +398,9 @@ require('lazy').setup({
388398
-- },
389399
-- },
390400
-- pickers = {}
401+
defaults = {
402+
file_ignore_patterns = { 'node_modules', '.git', '.cache', '.history', '.idea', '.vscode' },
403+
},
391404
extensions = {
392405
['ui-select'] = {
393406
require('telescope.themes').get_dropdown(),
@@ -451,6 +464,7 @@ require('lazy').setup({
451464
},
452465
},
453466
{ 'Bilal2453/luvit-meta', lazy = true },
467+
-- { 'linrongbin16/lsp-progress.nvim', opts = {} },
454468
{
455469
-- Main LSP Configuration
456470
'neovim/nvim-lspconfig',
@@ -462,7 +476,10 @@ require('lazy').setup({
462476

463477
-- Useful status updates for LSP.
464478
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
465-
{ 'j-hui/fidget.nvim', opts = {} },
479+
{
480+
'j-hui/fidget.nvim',
481+
opts = { notification = { window = { winblend = 0 } } },
482+
},
466483

467484
-- Allows extra capabilities provided by nvim-cmp
468485
'hrsh7th/cmp-nvim-lsp',
@@ -784,11 +801,11 @@ require('lazy').setup({
784801
-- Accept ([y]es) the completion.
785802
-- This will auto-import if your LSP supports it.
786803
-- This will expand snippets if the LSP sent a snippet.
787-
['<C-y>'] = cmp.mapping.confirm { select = true },
804+
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
788805

789806
-- If you prefer more traditional completion keymaps,
790807
-- you can uncomment the following lines
791-
--['<CR>'] = cmp.mapping.confirm { select = true },
808+
['<CR>'] = cmp.mapping.confirm { select = true },
792809
--['<Tab>'] = cmp.mapping.select_next_item(),
793810
--['<S-Tab>'] = cmp.mapping.select_prev_item(),
794811

@@ -840,17 +857,39 @@ require('lazy').setup({
840857
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
841858
'folke/tokyonight.nvim',
842859
priority = 1000, -- Make sure to load this before all the other start plugins.
860+
opts = {
861+
transparent = true,
862+
styles = {
863+
sidebars = 'transparent',
864+
floats = 'transparent',
865+
},
866+
},
843867
init = function()
844868
-- Load the colorscheme here.
845869
-- Like many other themes, this one has different styles, and you could load
846-
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
870+
847871
vim.cmd.colorscheme 'tokyonight-night'
848872

849873
-- You can configure highlights by doing something like:
850874
vim.cmd.hi 'Comment gui=none'
851875
end,
852876
},
853877

878+
-- {
879+
-- 'shaunsingh/nord.nvim',
880+
-- priority = 1000, -- Make sure to load this before all the other start plugins.
881+
-- opts = {
882+
-- transparent = true,
883+
-- styles = {
884+
-- sidebars = 'transparent',
885+
-- floats = 'transparent',
886+
-- },
887+
-- },
888+
-- init = function()
889+
-- vim.cmd.colorscheme 'nord'
890+
-- end,
891+
-- },
892+
854893
-- Highlight todo, notes, etc in comments
855894
{ 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } },
856895

@@ -916,8 +955,12 @@ require('lazy').setup({
916955
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
917956
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
918957
},
958+
{
959+
'supermaven-inc/supermaven-nvim',
960+
opts = {},
961+
},
919962

920-
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
963+
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
921964
-- init.lua. If you want these files, they are in the repository, so you can just download them and
922965
-- place them in the correct locations.
923966

0 commit comments

Comments
 (0)