Neovim updates
This commit is contained in:
parent
243b1f4666
commit
2554f0c1c7
@ -5,8 +5,8 @@ vim.g.mapleader = " "
|
||||
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
|
||||
if not vim.uv.fs_stat(lazypath) then
|
||||
local repo = "https://github.com/folke/lazy.nvim.git"
|
||||
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
|
||||
local repo = "https://github.com/folke/lazy.nvim.git"
|
||||
vim.fn.system { "git", "clone", "--filter=blob:none", repo, "--branch=stable", lazypath }
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
@ -15,14 +15,14 @@ local lazy_config = require "configs.lazy"
|
||||
|
||||
-- load plugins
|
||||
require("lazy").setup({
|
||||
{
|
||||
"NvChad/NvChad",
|
||||
lazy = false,
|
||||
branch = "v2.5",
|
||||
import = "nvchad.plugins",
|
||||
},
|
||||
{
|
||||
"NvChad/NvChad",
|
||||
lazy = false,
|
||||
branch = "v2.5",
|
||||
import = "nvchad.plugins",
|
||||
},
|
||||
|
||||
{ import = "plugins" },
|
||||
{ import = "plugins" },
|
||||
}, lazy_config)
|
||||
|
||||
-- load theme
|
||||
@ -33,5 +33,6 @@ require "options"
|
||||
require "nvchad.autocmds"
|
||||
|
||||
vim.schedule(function()
|
||||
require "mappings"
|
||||
require "mappings"
|
||||
require "langopts"
|
||||
end)
|
||||
|
@ -14,7 +14,7 @@
|
||||
"gopher.nvim": { "branch": "main", "commit": "f55c15ada8e02398000c04a96ef44d986cd01051" },
|
||||
"harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "e7a4442e055ec953311e77791546238d1eaae507" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
||||
"lazygit.nvim": { "branch": "main", "commit": "56760339a81cd1540d5a72fd9d93010a2677b55d" },
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"menu": { "branch": "main", "commit": "ee85b2e394fde354bd24e35ff7a688d10c9212fa" },
|
||||
@ -26,18 +26,19 @@
|
||||
"nvim-dap-go": { "branch": "main", "commit": "6aa88167ea1224bcef578e8c7160fe8afbb44848" },
|
||||
"nvim-dap-python": { "branch": "master", "commit": "03fe9592409236b9121c03b66a682dfca15a5cac" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "0d62a16429dba5fded93a076237079b81527e8f3" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "ff69ecca55d83ffc70657f260a799f79a5637831" },
|
||||
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "2a268f631da85e83b7a95291be589bcddfc785d8" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "bab7b0f20bd3e805b77231a77f516c7d69382693" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "5ad87620ec9d1190d15c88171a3f0122bc16b0fe" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "9b1e607298dd5fc2ee6549488324cc92dafb99c0" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||
"tagbar": { "branch": "master", "commit": "d55d454bd3d5b027ebf0e8c75b8f88e4eddad8d8" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||
"telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" },
|
||||
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
|
||||
"ui": { "branch": "v3.0", "commit": "81f5ff0fb2ce60cc3b2cfc9df928751c2ac4f7e9" },
|
||||
"undotree": { "branch": "master", "commit": "78b5241191852ffa9bb5da5ff2ee033160798c3b" },
|
||||
"venv-selector.nvim": { "branch": "regexp", "commit": "e82594274bf7b54387f9a2abe65f74909ac66e97" },
|
||||
"vim-helm": { "branch": "master", "commit": "ae1ebc160d2b9b90108477ab10df7a4fc501e358" },
|
||||
"vim-rooter": { "branch": "master", "commit": "51402fb77c4d6ae94994e37dc7ca13bec8f4afcc" },
|
||||
"vim-smoothie": { "branch": "master", "commit": "df1e324e9f3395c630c1c523d0555a01d2eb1b7e" },
|
||||
"volt": { "branch": "main", "commit": "229b4f1bc865c866227dd0e2ecda11ab6ec2c8cc" },
|
||||
|
39
home/any/neovim/.config/nvim/lua/chadrc.lua
Normal file → Executable file
39
home/any/neovim/.config/nvim/lua/chadrc.lua
Normal file → Executable file
@ -66,6 +66,7 @@ M.base46 = {
|
||||
SpecialChar = { fg = "#68A8E4" },
|
||||
Special = { fg = "#68A8E4" },
|
||||
Include = { fg = "#68A8E4" },
|
||||
NvDashFooter = { fg = "#EF2F27" },
|
||||
["@keyword"] = { fg = "#68A8E4" },
|
||||
["@keyword.repeat"] = { fg = "#68A8E4" },
|
||||
["@keyword.operator"] = { fg = "#68A8E4" },
|
||||
@ -127,6 +128,44 @@ M.ui = {
|
||||
}
|
||||
}
|
||||
|
||||
M.nvdash = {
|
||||
load_on_startup = true,
|
||||
header = {
|
||||
" ",
|
||||
" ",
|
||||
" ████ ██████ █████ ██ ",
|
||||
" ███████████ █████ ",
|
||||
" █████████ ███████████████████ ███ ███████████ ",
|
||||
" █████████ ███ █████████████ █████ ██████████████ ",
|
||||
" █████████ ██████████ █████████ █████ █████ ████ █████ ",
|
||||
" ███████████ ███ ███ █████████ █████ █████ ████ █████ ",
|
||||
" ██████ █████████████████████ ████ █████ █████ ████ ██████ ",
|
||||
" ",
|
||||
},
|
||||
|
||||
buttons = {
|
||||
{ txt = " Find File", keys = "ff", cmd = "Telescope find_files" },
|
||||
{ txt = " Recent Files", keys = "fo", cmd = "Telescope oldfiles" },
|
||||
{ txt = " Find Word", keys = "fw", cmd = "Telescope live_grep" },
|
||||
{ txt = " Themes", keys = "th", cmd = ":lua require('nvchad.themes').open()" },
|
||||
{ txt = " Mappings", keys = "ch", cmd = "NvCheatsheet" },
|
||||
|
||||
{ txt = "─", hl = "NvDashFooter", no_gap = true, rep = true },
|
||||
|
||||
{
|
||||
txt = function()
|
||||
local stats = require("lazy").stats()
|
||||
local ms = math.floor(stats.startuptime) .. " ms"
|
||||
return " Loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms
|
||||
end,
|
||||
hl = "NvDashFooter",
|
||||
no_gap = true,
|
||||
},
|
||||
|
||||
{ txt = "─", hl = "NvDashFooter", no_gap = true, rep = true },
|
||||
},
|
||||
}
|
||||
|
||||
M.mason = {
|
||||
pkgs = {
|
||||
"delve",
|
||||
|
66
home/any/neovim/.config/nvim/lua/langopts.lua
Normal file
66
home/any/neovim/.config/nvim/lua/langopts.lua
Normal file
@ -0,0 +1,66 @@
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "rust",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.colorcolumn = "100"
|
||||
vim.opt_local.expandtab = false
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "html",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.colorcolumn = "100"
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "go",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.colorcolumn = "100"
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "python",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.expandtab = true
|
||||
vim.opt_local.tabstop = 4
|
||||
vim.opt_local.softtabstop = 4
|
||||
vim.opt_local.shiftwidth = 4
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "yaml",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.expandtab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
-- This autocommand will only trigger if the buffer name matches the following patterns
|
||||
pattern = "helm",
|
||||
-- The autocommand will trigger the following lua function
|
||||
callback = function()
|
||||
vim.opt_local.expandtab = true
|
||||
vim.opt_local.tabstop = 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
vim.opt_local.shiftwidth = 2
|
||||
end
|
||||
})
|
@ -12,6 +12,10 @@ return {
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"towolf/vim-helm",
|
||||
lazy = false,
|
||||
},
|
||||
|
||||
-- {
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
|
Loading…
Reference in New Issue
Block a user