inital commit,
initalized from nix flake init -t github:BirdeeHub/nixCats-nvim#example.
This commit is contained in:
commit
9a78fd2d53
21 changed files with 2208 additions and 0 deletions
36
lua/myLuaConf/init.lua
Normal file
36
lua/myLuaConf/init.lua
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
-- NOTE: various, non-plugin config
|
||||
require('myLuaConf.opts_and_keys')
|
||||
|
||||
-- NOTE: register an extra lze handler with the spec_field 'for_cat'
|
||||
-- that makes enabling an lze spec for a category slightly nicer
|
||||
require("lze").register_handlers(require('nixCatsUtils.lzUtils').for_cat)
|
||||
|
||||
-- NOTE: Register another one from lzextras. This one makes it so that
|
||||
-- you can set up lsps within lze specs,
|
||||
-- and trigger lspconfig setup hooks only on the correct filetypes
|
||||
require('lze').register_handlers(require('lzextras').lsp)
|
||||
-- demonstrated in ./LSPs/init.lua
|
||||
|
||||
-- NOTE: general plugins
|
||||
require("myLuaConf.plugins")
|
||||
|
||||
-- NOTE: obviously, more plugins, but more organized by what they do below
|
||||
|
||||
require("myLuaConf.LSPs")
|
||||
|
||||
-- NOTE: we even ask nixCats if we included our debug stuff in this setup! (we didnt)
|
||||
-- But we have a good base setup here as an example anyway!
|
||||
if nixCats('debug') then
|
||||
require('myLuaConf.debug')
|
||||
end
|
||||
-- NOTE: we included these though! Or, at least, the category is enabled.
|
||||
-- these contain nvim-lint and conform setups.
|
||||
if nixCats('lint') then
|
||||
require('myLuaConf.lint')
|
||||
end
|
||||
if nixCats('format') then
|
||||
require('myLuaConf.format')
|
||||
end
|
||||
-- NOTE: I didnt actually include any linters or formatters in this configuration,
|
||||
-- but it is enough to serve as an example.
|
||||
Loading…
Add table
Add a link
Reference in a new issue