a bunch of stuff added . . .
This commit is contained in:
parent
2e68a2c253
commit
5887fc58e2
10 changed files with 101 additions and 34 deletions
3
lua/custom/coloring/init.lua
Normal file
3
lua/custom/coloring/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
vim.api.nvim_set_hl(0, 'LineNr', { fg = '#DDEEFF' })
|
||||
vim.api.nvim_set_hl(0, 'Comment', { fg = '#666666' })
|
||||
vim.api.nvim_set_hl(0, 'SpecialComment', { fg = '#666677' })
|
||||
3
lua/custom/init.lua
Normal file
3
lua/custom/init.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-- Mappings
|
||||
require 'custom.mappings'
|
||||
require 'custom.coloring'
|
||||
11
lua/custom/mappings/init.lua
Normal file
11
lua/custom/mappings/init.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- Problems window
|
||||
vim.keymap.set('n', '<leader>Co', '<Cmd>copen<CR>')
|
||||
vim.keymap.set('n', '<leader>Cp', '<Cmd>cprev<CR>')
|
||||
vim.keymap.set('n', '<leader>Cn', '<Cmd>cnext<CR>')
|
||||
|
||||
-- Select all
|
||||
vim.keymap.set('n', '<C-S-a>', 'ggVG')
|
||||
|
||||
-- Stop deselecting after indenting
|
||||
vim.keymap.set('v', '<', '<gv')
|
||||
vim.keymap.set('v', '>', '>gv')
|
||||
28
lua/custom/plugins/barbar.lua
Normal file
28
lua/custom/plugins/barbar.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
return {
|
||||
{
|
||||
'romgrk/barbar.nvim',
|
||||
dependencies = {
|
||||
'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status
|
||||
'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons
|
||||
},
|
||||
init = function()
|
||||
vim.g.barbar_auto_setup = false
|
||||
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
map('n', '<tab>', '<Cmd>BufferPrevious<CR>', opts)
|
||||
map('n', '<S-tab>', '<Cmd>BufferPrevious<CR>', opts)
|
||||
map('n', '<leader>xx', '<Cmd>BufferClose<CR>', vim.tbl_extend('force', opts, { desc = '[X] Close buffer' }))
|
||||
map('n', '<leader>xl', '<Cmd>BufferCloseBuffersLeft<CR>', vim.tbl_extend('force', opts, { desc = '[L] Close all buffers left' }))
|
||||
map('n', '<leader>xr', '<Cmd>BufferCloseBuffersRight<CR>', vim.tbl_extend('force', opts, { desc = '[R] Close all buffers right' }))
|
||||
end,
|
||||
opts = {
|
||||
-- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default:
|
||||
-- animation = true,
|
||||
-- insert_at_start = true,
|
||||
-- …etc.
|
||||
},
|
||||
version = '^1.0.0', -- optional: only update when a new 1.x version is released
|
||||
},
|
||||
}
|
||||
14
lua/custom/plugins/copilot.lua
Normal file
14
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
return {
|
||||
'github/copilot.vim',
|
||||
lazy = false,
|
||||
init = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
|
||||
map('i', '<C-o>', 'copilot#Accept("<CR>")', { expr = true, silent = true })
|
||||
end,
|
||||
config = function()
|
||||
vim.g.copilot_no_tab_map = true
|
||||
vim.g.copilot_assume_mapped = true
|
||||
vim.g.copilot_tab_fallback = ''
|
||||
end,
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
-- You can add your own plugins here or in other files in this directory!
|
||||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
return {}
|
||||
0
lua/custom/plugins/scope.lua
Normal file
0
lua/custom/plugins/scope.lua
Normal file
Loading…
Add table
Add a link
Reference in a new issue