Move extra config files into config directory
This commit is contained in:
parent
ce7fed242e
commit
9bc564895f
|
@ -13,11 +13,7 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require("lazy").setup "plugins"
|
require("lazy").setup "plugins"
|
||||||
|
|
||||||
-- Set vim options
|
-- Set vim options
|
||||||
require "options"
|
require "config"
|
||||||
-- Define custom keymappings
|
|
||||||
require "keymaps"
|
|
||||||
-- Remaining vim commands to be converted to lua
|
|
||||||
require "vimcommands"
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ vim.g.python_indent = {
|
||||||
continue = "shiftwidth()",
|
continue = "shiftwidth()",
|
||||||
closed_paren_align_last_line = "v:false",
|
closed_paren_align_last_line = "v:false",
|
||||||
}
|
}
|
||||||
vim.opt.termguicolors = true
|
|
||||||
vim.opt.laststatus = 3
|
vim.opt.laststatus = 3
|
||||||
vim.opt.mouse = "nv"
|
vim.opt.mouse = "nv"
|
||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
|
@ -23,3 +22,4 @@ vim.opt.autoindent = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
vim.opt.splitbelow = true
|
vim.opt.splitbelow = true
|
||||||
vim.opt.splitright = true
|
vim.opt.splitright = true
|
||||||
|
require "config.keymaps"
|
|
@ -4,6 +4,7 @@ return {
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
|
vim.opt.termguicolors = true
|
||||||
require "ui.fillchars"
|
require "ui.fillchars"
|
||||||
require("catppuccin").setup(require "ui.catppuccin_opts")
|
require("catppuccin").setup(require "ui.catppuccin_opts")
|
||||||
vim.cmd "colorscheme catppuccin"
|
vim.cmd "colorscheme catppuccin"
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
-- TODO convert to lua
|
|
||||||
vim.cmd "let &t_ut=''" -- For kitty background colour support
|
|
||||||
vim.cmd [[
|
|
||||||
au BufRead,BufNewFile *.ipynb setlocal filetype=json
|
|
||||||
au BufRead,BufNewFile *.md setlocal spell
|
|
||||||
au BufRead,BufNewFile *.code-workspace setlocal filetype=json
|
|
||||||
au BufRead,BufNewFile *.csv setlocal nowrap
|
|
||||||
au BufRead,BufNewFile *.service[a-zA-Z0-9]* setlocal filetype=systemd
|
|
||||||
au TermOpen * setlocal nonumber norelativenumber
|
|
||||||
syntax on
|
|
||||||
]]
|
|
Loading…
Reference in a new issue