add a lot of hyprland configs
This commit is contained in:
parent
9f22ffe6da
commit
2ec2a1f726
5 changed files with 32 additions and 3 deletions
|
@ -1 +1,6 @@
|
|||
## Telescope @custom:
|
||||
Search, Preview and Open file | <leader>ff
|
||||
|
||||
## Formatter @custom:
|
||||
Format current buffer | <leader>f
|
||||
Format and write current buffer | <leader>F
|
||||
|
|
|
@ -16,4 +16,6 @@ augroup FormatAutogroup
|
|||
autocmd BufWritePost * FormatWrite
|
||||
augroup END
|
||||
|
||||
so "keybinding.vim"
|
||||
|
||||
lua require('plugins')
|
||||
|
|
2
nvim/keybinding.vim
Normal file
2
nvim/keybinding.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
nnoremap <silent> <leader>f :Format<CR>
|
||||
nnoremap <silent> <leader>F :FormatWrite<CR>
|
16
nvim/lua/barbar-config.lua
Normal file
16
nvim/lua/barbar-config.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
-- Move to previous/next
|
||||
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
|
||||
-- Goto buffer in position...
|
||||
map('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts)
|
||||
map('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts)
|
||||
map('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts)
|
||||
map('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts)
|
||||
map('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts)
|
||||
map('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts)
|
||||
map('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts)
|
||||
map('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts)
|
||||
map('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts)
|
||||
map('n', '<A-0>', '<Cmd>BufferLast<CR>', opts)
|
|
@ -28,7 +28,10 @@ return require("packer").startup(function(use)
|
|||
},
|
||||
})
|
||||
|
||||
use({ "romgrk/barbar.nvim", requires = "nvim-web-devicons" })
|
||||
use({
|
||||
"romgrk/barbar.nvim",
|
||||
requires = { "nvim-web-devicons", "lewis6991/gitsigns.nvim" },
|
||||
})
|
||||
|
||||
use("nvim-treesitter/nvim-treesitter")
|
||||
|
||||
|
@ -87,14 +90,15 @@ return require("packer").startup(function(use)
|
|||
require("nvim-tree-config")
|
||||
require("nvim-cmp-config")
|
||||
require("autoclose-config")
|
||||
require("image-config")
|
||||
require("barbar-config")
|
||||
--require("image-config")
|
||||
require("telescope-config")
|
||||
-- require('ale-config')
|
||||
require("formatter-config")
|
||||
require("lualine").setup()
|
||||
require("virt-column").setup()
|
||||
|
||||
if packer_bootstrap then
|
||||
if packer_bootstrap then
|
||||
require("packer").sync()
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Reference in a new issue