[Term] Moves terminal utils to terminal config. [Vim] Messes with configs a bit
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
vim.g.mapleader = ","
|
||||
|
||||
vim.cmd [[
|
||||
colorscheme decay-dark
|
||||
set autoindent
|
||||
set expandtab
|
||||
set smartindent
|
||||
set shiftwidth=2
|
||||
set tabstop=2
|
||||
set softtabstop=2
|
||||
filetype on
|
||||
|
||||
]]
|
||||
|
||||
-- Make sure sesssion options includes `localoptions` so that auto-sessions will start properly
|
||||
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||
|
||||
local telescope = require('telescope.builtin')
|
||||
|
||||
vim.keymap.set("n", "<C-e>", "<cmd>RnvimrToggle<CR>", { noremap = true, silent = true })
|
||||
vim.keymap.set("n", "<C-n>", "<cmd>TabNext<CR>", { noremap = true, silent = true })
|
||||
vim.keymap.set("n", "<C-p>", telescope.find_files, { desc = "Telescope find files" })
|
||||
vim.keymap.set("n", "<C-t>", telescope.buffers, { desc = "Telescope buffers" })
|
||||
|
||||
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
rasi = 'rasi',
|
||||
},
|
||||
pattern = {
|
||||
-- Some common config files and their types
|
||||
['.*/waybar/config'] = 'jsonc',
|
||||
['.*/mako/config'] = 'dosini',
|
||||
['.*/kitty/*.conf'] = 'bash',
|
||||
['.*/hypr/.*%.conf'] = 'hyprlang',
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user