owo
This commit is contained in:
parent
52c14e8494
commit
85d66ba396
7 changed files with 33 additions and 19 deletions
|
@ -15,6 +15,9 @@ vim.keymap.set("n", "<leader>-w", ":!chmod -w %<CR>", {silent = true})
|
||||||
|
|
||||||
vim.opt.nu = true
|
vim.opt.nu = true
|
||||||
|
|
||||||
|
vim.cmd([[set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,space:•]])
|
||||||
|
vim.keymap.set("n", "<leader>hc", ":set list!<CR>", {silent=true})
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
vim.opt.hlsearch = false
|
vim.opt.hlsearch = false
|
||||||
|
@ -27,3 +30,6 @@ vim.cmd([[command! QuickFix lua vim.lsp.buf.code_action()]])
|
||||||
vim.keymap.set("n", "<leader>qf", ":QuickFix<CR>", {silent=true})
|
vim.keymap.set("n", "<leader>qf", ":QuickFix<CR>", {silent=true})
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>cb", ":!cargo build<CR>", {silent=true})
|
vim.keymap.set("n", "<leader>cb", ":!cargo build<CR>", {silent=true})
|
||||||
|
|
||||||
|
vim.keymap.set("v", "<leader>yo", ":yank +", {silent=true})
|
||||||
|
vim.keymap.set("v", "<leader>ya", ":yank *", {silent=true})
|
||||||
|
|
|
@ -2,7 +2,7 @@ return {
|
||||||
'goolord/alpha-nvim',
|
'goolord/alpha-nvim',
|
||||||
config = function()
|
config = function()
|
||||||
local alpha = require("alpha")
|
local alpha = require("alpha")
|
||||||
local dashboard = require("alpha.themes.dashboard")
|
local dashboard = require("alpha.themes.startify")
|
||||||
|
|
||||||
-- Set header
|
-- Set header
|
||||||
dashboard.section.header.val = {
|
dashboard.section.header.val = {
|
||||||
|
@ -18,18 +18,10 @@ return {
|
||||||
}
|
}
|
||||||
|
|
||||||
dashboard.section.header.opts.hl = {
|
dashboard.section.header.opts.hl = {
|
||||||
{'top_of_mlm', 1, 118},
|
{'top_of_mlm', 1, 100},
|
||||||
{'top_of_mlm', 121, 238},
|
|
||||||
{'top_middle_of_mlm', 241, 358},
|
|
||||||
{'top_middle_of_mlm', 361, 478},
|
|
||||||
{'middle_of_mlm', 481, 598},
|
|
||||||
{'bottom_middle_of_mlm', 601, 718},
|
|
||||||
{'bottom_middle_of_mlm', 721, 838},
|
|
||||||
{'bottom_of_mlm', 841, 958},
|
|
||||||
{'bottom_of_mlm', 961, 1078},
|
|
||||||
}
|
}
|
||||||
-- Set menu
|
-- Set menu
|
||||||
dashboard.section.buttons.val= {
|
--[[ dashboard.section.buttons.val= {
|
||||||
type = "group",
|
type = "group",
|
||||||
val = {
|
val = {
|
||||||
{ type = "text", val = "Quick links", opts = { hl = "SpecialComment", position = "center" } },
|
{ type = "text", val = "Quick links", opts = { hl = "SpecialComment", position = "center" } },
|
||||||
|
@ -39,7 +31,7 @@ return {
|
||||||
dashboard.button("q", " Quit", "<cmd>qa<CR>"),
|
dashboard.button("q", " Quit", "<cmd>qa<CR>"),
|
||||||
},
|
},
|
||||||
position = "center",
|
position = "center",
|
||||||
}
|
}]]--
|
||||||
-- Send config to alpha
|
-- Send config to alpha
|
||||||
alpha.setup(dashboard.opts)
|
alpha.setup(dashboard.opts)
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ return {
|
||||||
-- (Optional) Configure lua language server for neovim
|
-- (Optional) Configure lua language server for neovim
|
||||||
local lua_opts = lsp_zero.nvim_lua_ls()
|
local lua_opts = lsp_zero.nvim_lua_ls()
|
||||||
require('lspconfig').lua_ls.setup(lua_opts)
|
require('lspconfig').lua_ls.setup(lua_opts)
|
||||||
|
require'lspconfig'.ltex.setup{}
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,7 +2,14 @@ return {
|
||||||
"EdenEast/nightfox.nvim",
|
"EdenEast/nightfox.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
|
local nightfox = require("nightfox")
|
||||||
|
nightfox.setup({
|
||||||
|
transparent = true
|
||||||
|
})
|
||||||
|
nightfox.load()
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
vim.cmd("colorscheme carbonfox")
|
vim.cmd("colorscheme carbonfox")
|
||||||
|
--vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||||
|
--vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
3
lua/Dario48/plugins/nvim-tetris.lua
Normal file
3
lua/Dario48/plugins/nvim-tetris.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
"alec-gibson/nvim-tetris"
|
||||||
|
}
|
|
@ -40,12 +40,8 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
local focus = function()
|
vim.cmd([[command! NvimTreeFocus NvimTreeClose | NvimTreeOpen]])
|
||||||
vim.cmd("NvimTreeClose")
|
vim.keymap.set("n", "<leader>ee", ":NvimTreeToggle <CR>", { silent = true })
|
||||||
vim.cmd("NvimTreeOpen")
|
vim.keymap.set("n", "<leader>ef", ":NvimTreeFocus <CR>", { silent = true } )
|
||||||
end
|
|
||||||
vim.cmd([[command! NvimTreeFocus lua require("nvim-tree").focus() ]])
|
|
||||||
vim.keymap.set("n", "<leader>ee", ":NvimTreeToggle <CR>")
|
|
||||||
vim.keymap.set("n", "<leader>ef", ":NvimTreeFocus <CR>")
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
9
lua/Dario48/plugins/oxocarbon.lua
Normal file
9
lua/Dario48/plugins/oxocarbon.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
--[[ "nyoom-engineering/oxocarbon.nvim",
|
||||||
|
config = function ()
|
||||||
|
vim.opt.background = "dark"
|
||||||
|
vim.cmd("colorscheme oxocarbon")
|
||||||
|
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||||
|
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||||
|
end ]]--
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue