feat: add nvimdots
This commit is contained in:
0
nvim/lua/user_template/configs/.gitkeep
Normal file
0
nvim/lua/user_template/configs/.gitkeep
Normal file
0
nvim/lua/user_template/configs/dap-clients/.gitkeep
Normal file
0
nvim/lua/user_template/configs/dap-clients/.gitkeep
Normal file
0
nvim/lua/user_template/configs/formatters/.gitkeep
Normal file
0
nvim/lua/user_template/configs/formatters/.gitkeep
Normal file
0
nvim/lua/user_template/configs/lsp-servers/.gitkeep
Normal file
0
nvim/lua/user_template/configs/lsp-servers/.gitkeep
Normal file
8
nvim/lua/user_template/event.lua
Normal file
8
nvim/lua/user_template/event.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
local definitions = {
|
||||
-- Example
|
||||
bufs = {
|
||||
{ "BufWritePre", "COMMIT_EDITMSG", "setlocal noundofile" },
|
||||
},
|
||||
}
|
||||
|
||||
return definitions
|
||||
16
nvim/lua/user_template/keymap/completion.lua
Normal file
16
nvim/lua/user_template/keymap/completion.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
local mappings = {}
|
||||
|
||||
-- Place global keymaps here.
|
||||
mappings["plug_map"] = {}
|
||||
|
||||
-- NOTE: This function is special! Keymaps defined here are ONLY effective in buffers with LSP(s) attached
|
||||
-- NOTE: Make sure to include `:with_buffer(buf)` to limit the scope of your mappings.
|
||||
---@param buf number @The effective bufnr
|
||||
mappings["lsp"] = function(buf)
|
||||
return {
|
||||
-- Example
|
||||
["n|K"] = require("keymap.bind").map_cr("Lspsaga hover_doc"):with_buffer(buf):with_desc("lsp: Show doc"),
|
||||
}
|
||||
end
|
||||
|
||||
return mappings
|
||||
1
nvim/lua/user_template/keymap/core.lua
Normal file
1
nvim/lua/user_template/keymap/core.lua
Normal file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
1
nvim/lua/user_template/keymap/editor.lua
Normal file
1
nvim/lua/user_template/keymap/editor.lua
Normal file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
9
nvim/lua/user_template/keymap/init.lua
Normal file
9
nvim/lua/user_template/keymap/init.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return vim.tbl_extend(
|
||||
"force",
|
||||
require("user.keymap.core"),
|
||||
require("user.keymap.completion").plug_map,
|
||||
require("user.keymap.editor"),
|
||||
require("user.keymap.lang"),
|
||||
require("user.keymap.tool"),
|
||||
require("user.keymap.ui")
|
||||
)
|
||||
1
nvim/lua/user_template/keymap/lang.lua
Normal file
1
nvim/lua/user_template/keymap/lang.lua
Normal file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
1
nvim/lua/user_template/keymap/tool.lua
Normal file
1
nvim/lua/user_template/keymap/tool.lua
Normal file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
1
nvim/lua/user_template/keymap/ui.lua
Normal file
1
nvim/lua/user_template/keymap/ui.lua
Normal file
@@ -0,0 +1 @@
|
||||
return {}
|
||||
6
nvim/lua/user_template/options.lua
Normal file
6
nvim/lua/user_template/options.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
local options = {
|
||||
-- Example
|
||||
autoindent = true,
|
||||
}
|
||||
|
||||
return options
|
||||
0
nvim/lua/user_template/plugins/.gitkeep
Normal file
0
nvim/lua/user_template/plugins/.gitkeep
Normal file
9
nvim/lua/user_template/settings.lua
Normal file
9
nvim/lua/user_template/settings.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Please check `lua/core/settings.lua` to view the full list of configurable settings
|
||||
local settings = {}
|
||||
|
||||
-- Examples
|
||||
settings["use_ssh"] = true
|
||||
|
||||
settings["colorscheme"] = "catppuccin"
|
||||
|
||||
return settings
|
||||
Reference in New Issue
Block a user