apps: nvim: remove user config for now (using nvchad)
This commit is contained in:
parent
b7ac0bfc5f
commit
c313a73db9
@ -11,144 +11,146 @@
|
|||||||
viAlias = true;
|
viAlias = true;
|
||||||
vimAlias = true;
|
vimAlias = true;
|
||||||
vimdiffAlias = true;
|
vimdiffAlias = true;
|
||||||
#withNodeJS = true;
|
withNodeJs = true;
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
# plugins = with pkgs.vimPlugins; [
|
||||||
|
#
|
||||||
# Syntax
|
# # Syntax
|
||||||
#vim-nix
|
# #vim-nix
|
||||||
#vim-markdown
|
# #vim-markdown
|
||||||
|
#
|
||||||
# Quality of life
|
# # Quality of life
|
||||||
vim-lastplace # Opens document where you left it
|
# vim-lastplace # Opens document where you left it
|
||||||
auto-pairs # Print double quotes/brackets/etc.
|
# auto-pairs # Print double quotes/brackets/etc.
|
||||||
vim-gitgutter # See uncommitted changes of file :GitGutterEnable
|
# vim-gitgutter # See uncommitted changes of file :GitGutterEnable
|
||||||
|
#
|
||||||
# File Tree
|
# # File Tree
|
||||||
nerdtree # File Manager - set in extraConfig to F6
|
# nerdtree # File Manager - set in extraConfig to F6
|
||||||
|
#
|
||||||
# Customization
|
# # Customization
|
||||||
wombat256-vim # Color scheme for lightline
|
# wombat256-vim # Color scheme for lightline
|
||||||
srcery-vim # Color scheme for text
|
# srcery-vim # Color scheme for text
|
||||||
|
#
|
||||||
lightline-vim # Info bar at bottom
|
# lightline-vim # Info bar at bottom
|
||||||
indent-blankline-nvim # Indentation lines
|
# indent-blankline-nvim # Indentation lines
|
||||||
|
#
|
||||||
# Syntax
|
# # Syntax
|
||||||
nvim-treesitter.withAllGrammars
|
# nvim-treesitter.withAllGrammars
|
||||||
# finder
|
# # finder
|
||||||
telescope-nvim
|
# telescope-nvim
|
||||||
# completion
|
# # completion
|
||||||
nvim-cmp
|
# nvim-cmp
|
||||||
# status line
|
# # status line
|
||||||
lualine-nvim
|
# lualine-nvim
|
||||||
# indent
|
# # indent
|
||||||
indent-blankline-nvim
|
# indent-blankline-nvim
|
||||||
];
|
# ];
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
ripgrep
|
ripgrep
|
||||||
fd
|
fd
|
||||||
|
nodejs
|
||||||
|
nodePackages.npm
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
set expandtab
|
# set expandtab
|
||||||
set shiftwidth=4
|
# set shiftwidth=4
|
||||||
set tabstop=4
|
# set tabstop=4
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
extraLuaConfig = ''
|
# extraLuaConfig = ''
|
||||||
vim.g.mapleader = ' '
|
# vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
# vim.g.maplocalleader = ' '
|
||||||
|
#
|
||||||
-- Set highlight on search
|
# -- Set highlight on search
|
||||||
vim.o.hlsearch = false
|
# vim.o.hlsearch = false
|
||||||
|
#
|
||||||
-- Make line numbers default
|
# -- Make line numbers default
|
||||||
vim.wo.number = true
|
# vim.wo.number = true
|
||||||
|
#
|
||||||
-- Enable mouse mode
|
# -- Enable mouse mode
|
||||||
vim.o.mouse = 'a'
|
# vim.o.mouse = 'a'
|
||||||
|
#
|
||||||
-- Sync clipboard between OS and Neovim.
|
# -- Sync clipboard between OS and Neovim.
|
||||||
-- Remove this option if you want your OS clipboard to remain independent.
|
# -- Remove this option if you want your OS clipboard to remain independent.
|
||||||
-- See `:help 'clipboard'`
|
# -- See `:help 'clipboard'`
|
||||||
vim.o.clipboard = 'unnamedplus'
|
# vim.o.clipboard = 'unnamedplus'
|
||||||
|
#
|
||||||
-- Enable break indent
|
# -- Enable break indent
|
||||||
vim.o.breakindent = true
|
# vim.o.breakindent = true
|
||||||
|
#
|
||||||
-- Save undo history
|
# -- Save undo history
|
||||||
vim.o.undofile = true
|
# vim.o.undofile = true
|
||||||
|
#
|
||||||
-- Case insensitive searching UNLESS /C or capital in search
|
# -- Case insensitive searching UNLESS /C or capital in search
|
||||||
vim.o.ignorecase = true
|
# vim.o.ignorecase = true
|
||||||
vim.o.smartcase = true
|
# vim.o.smartcase = true
|
||||||
|
#
|
||||||
-- Keep signcolumn on by default
|
# -- Keep signcolumn on by default
|
||||||
vim.wo.signcolumn = 'yes'
|
# vim.wo.signcolumn = 'yes'
|
||||||
|
#
|
||||||
-- Decrease update time
|
# -- Decrease update time
|
||||||
vim.o.updatetime = 250
|
# vim.o.updatetime = 250
|
||||||
vim.o.timeout = true
|
# vim.o.timeout = true
|
||||||
vim.o.timeoutlen = 300
|
# vim.o.timeoutlen = 300
|
||||||
|
#
|
||||||
-- Set completeopt to have a better completion experience
|
# -- Set completeopt to have a better completion experience
|
||||||
vim.o.completeopt = 'menuone,noselect'
|
# vim.o.completeopt = 'menuone,noselect'
|
||||||
|
#
|
||||||
-- NOTE: You should make sure your terminal supports this
|
# -- NOTE: You should make sure your terminal supports this
|
||||||
vim.o.termguicolors = true
|
# vim.o.termguicolors = true
|
||||||
|
#
|
||||||
-- [[ Highlight on yank ]]
|
# -- [[ Highlight on yank ]]
|
||||||
-- See `:help vim.highlight.on_yank()`
|
# -- See `:help vim.highlight.on_yank()`
|
||||||
local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
# local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
|
||||||
vim.api.nvim_create_autocmd('TextYankPost', {
|
# vim.api.nvim_create_autocmd('TextYankPost', {
|
||||||
callback = function()
|
# callback = function()
|
||||||
vim.highlight.on_yank()
|
# vim.highlight.on_yank()
|
||||||
end,
|
# end,
|
||||||
group = highlight_group,
|
# group = highlight_group,
|
||||||
pattern = '*',
|
# pattern = '*',
|
||||||
})
|
# })
|
||||||
|
#
|
||||||
-- [[ Configure Telescope ]]
|
# -- [[ Configure Telescope ]]
|
||||||
-- See `:help telescope` and `:help telescope.setup()`
|
# -- See `:help telescope` and `:help telescope.setup()`
|
||||||
require('telescope').setup {
|
# require('telescope').setup {
|
||||||
defaults = {
|
# defaults = {
|
||||||
mappings = {
|
# mappings = {
|
||||||
i = {
|
# i = {
|
||||||
['<C-u>'] = false,
|
# ['<C-u>'] = false,
|
||||||
['<C-d>'] = false,
|
# ['<C-d>'] = false,
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
},
|
# },
|
||||||
}
|
# }
|
||||||
|
#
|
||||||
-- Enable telescope fzf native, if installed
|
# -- Enable telescope fzf native, if installed
|
||||||
pcall(require('telescope').load_extension, 'fzf')
|
# pcall(require('telescope').load_extension, 'fzf')
|
||||||
|
#
|
||||||
-- See `:help telescope.builtin`
|
# -- See `:help telescope.builtin`
|
||||||
vim.keymap.set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
|
# vim.keymap.set('n', '<leader>?', require('telescope.builtin').oldfiles, { desc = '[?] Find recently opened files' })
|
||||||
vim.keymap.set('n', '<leader><space>', require('telescope.builtin').buffers, { desc = '[ ] Find existing buffers' })
|
# vim.keymap.set('n', '<leader><space>', require('telescope.builtin').buffers, { desc = '[ ] Find existing buffers' })
|
||||||
vim.keymap.set('n', '<leader>/', function()
|
# vim.keymap.set('n', '<leader>/', function()
|
||||||
-- You can pass additional configuration to telescope to change theme, layout, etc.
|
# -- You can pass additional configuration to telescope to change theme, layout, etc.
|
||||||
require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
|
# require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
|
||||||
winblend = 10,
|
# winblend = 10,
|
||||||
previewer = false,
|
# previewer = false,
|
||||||
})
|
# })
|
||||||
end, { desc = '[/] Fuzzily search in current buffer' })
|
# end, { desc = '[/] Fuzzily search in current buffer' })
|
||||||
|
#
|
||||||
vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
|
# vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
|
||||||
vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
|
# vim.keymap.set('n', '<leader>sf', require('telescope.builtin').find_files, { desc = '[S]earch [F]iles' })
|
||||||
vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
|
# vim.keymap.set('n', '<leader>sh', require('telescope.builtin').help_tags, { desc = '[S]earch [H]elp' })
|
||||||
vim.keymap.set('n', '<leader>sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })
|
# vim.keymap.set('n', '<leader>sw', require('telescope.builtin').grep_string, { desc = '[S]earch current [W]ord' })
|
||||||
vim.keymap.set('n', '<leader>sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
|
# vim.keymap.set('n', '<leader>sg', require('telescope.builtin').live_grep, { desc = '[S]earch by [G]rep' })
|
||||||
vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' })
|
# vim.keymap.set('n', '<leader>sd', require('telescope.builtin').diagnostics, { desc = '[S]earch [D]iagnostics' })
|
||||||
require("indent_blankline").setup {
|
# require("indent_blankline").setup {
|
||||||
-- for example, context is off by default, use this to turn it on
|
# -- for example, context is off by default, use this to turn it on
|
||||||
show_current_context = true,
|
# show_current_context = true,
|
||||||
show_current_context_start = true,
|
# show_current_context_start = true,
|
||||||
}
|
# }
|
||||||
'';
|
# '';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user