38 lines
1.1 KiB
Lua
38 lines
1.1 KiB
Lua
-- Leader must be set before lazy is setup.
|
|
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',
|
|
},
|
|
}
|