update nvim theming
This commit is contained in:
parent
c07c2c5477
commit
74c9aa5fb9
39
init.lua
39
init.lua
@ -1,6 +1,8 @@
|
|||||||
-- https://learnxinyminutes.com/docs/lua/
|
-- https://learnxinyminutes.com/docs/lua/
|
||||||
|
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
|
vim.g.user_emmet_install_global = 0
|
||||||
|
vim.g.user_emmet_leader_key = ","
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
|
||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
@ -66,8 +68,10 @@ require('lazy').setup({
|
|||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk,
|
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk,
|
||||||
{ buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
|
{ buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
|
||||||
vim.keymap.set('n', '<leader>gn', require('gitsigns').next_hunk, { buffer = bufnr, desc = '[G]o to [N]ext Hunk' })
|
vim.keymap.set('n', '<leader>gn', require('gitsigns').next_hunk,
|
||||||
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
|
{ buffer = bufnr, desc = '[G]o to [N]ext Hunk' })
|
||||||
|
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk,
|
||||||
|
{ buffer = bufnr, desc = '[P]review [H]unk' })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -79,8 +83,8 @@ require('lazy').setup({
|
|||||||
-- See `:help lualine.txt`
|
-- See `:help lualine.txt`
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = false,
|
icons_enabled = true,
|
||||||
theme = 'ayu_dark',
|
theme = 'moonfly',
|
||||||
component_separators = '|',
|
component_separators = '|',
|
||||||
section_separators = '',
|
section_separators = '',
|
||||||
},
|
},
|
||||||
@ -92,10 +96,8 @@ require('lazy').setup({
|
|||||||
'lukas-reineke/indent-blankline.nvim',
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
-- See `:help indent_blankline.txt`
|
-- See `:help indent_blankline.txt`
|
||||||
opts = {
|
main = 'ibl',
|
||||||
char = '┊',
|
opts = {},
|
||||||
show_trailing_blankline_indent = false,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- "gc" to comment visual regions/lines
|
-- "gc" to comment visual regions/lines
|
||||||
@ -180,6 +182,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
|||||||
pattern = '*',
|
pattern = '*',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local fb_actions = require "telescope".extensions.file_browser.actions
|
||||||
-- [[ Configure Telescope ]]
|
-- [[ Configure Telescope ]]
|
||||||
require('telescope').setup {
|
require('telescope').setup {
|
||||||
defaults = {
|
defaults = {
|
||||||
@ -343,12 +346,14 @@ end
|
|||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
-- clangd = {},
|
-- clangd = {},
|
||||||
-- gopls = {},
|
|
||||||
-- pyright = {},
|
|
||||||
rust_analyzer = {},
|
|
||||||
gopls = {},
|
|
||||||
-- tsserver = {},
|
|
||||||
-- hls = {},
|
-- hls = {},
|
||||||
|
rust_analyzer = {},
|
||||||
|
gopls = {
|
||||||
|
usePlaceholders = true,
|
||||||
|
analyses = {
|
||||||
|
unusedparams = true,
|
||||||
|
}
|
||||||
|
},
|
||||||
html = { provideFormatter = false },
|
html = { provideFormatter = false },
|
||||||
cssls = {},
|
cssls = {},
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
@ -391,10 +396,10 @@ mason_lspconfig.setup_handlers {
|
|||||||
-- this is for my personal config, i cant bother seeing every TJ's default and changing it to my own
|
-- this is for my personal config, i cant bother seeing every TJ's default and changing it to my own
|
||||||
require("jabuxas")
|
require("jabuxas")
|
||||||
|
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 4
|
||||||
vim.opt.softtabstop = 2
|
vim.opt.softtabstop = 4
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
|
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=4 sts=4 sw=4 et
|
||||||
|
@ -2,8 +2,12 @@ return {
|
|||||||
'akinsho/bufferline.nvim',
|
'akinsho/bufferline.nvim',
|
||||||
version = "*",
|
version = "*",
|
||||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||||
|
opts = {
|
||||||
|
options = {
|
||||||
|
mode = "tabs"
|
||||||
|
}
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('bufferline').setup()
|
|
||||||
vim.keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" })
|
vim.keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" })
|
||||||
vim.keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" })
|
vim.keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" })
|
||||||
vim.keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" })
|
vim.keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" })
|
||||||
|
@ -142,8 +142,8 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
window = {
|
window = {
|
||||||
completion = cmp.config.window.bordered({ winhighlight }),
|
completion = cmp.config.window.bordered(winhighlight),
|
||||||
documentation = cmp.config.window.bordered({ winhighlight }),
|
documentation = cmp.config.window.bordered(winhighlight),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,15 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
"mattn/emmet-vim",
|
"mattn/emmet-vim",
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.user_emmet_leader_key = ","
|
|
||||||
vim.g.user_emmet_install_global = 0
|
|
||||||
|
|
||||||
local autocmd = vim.api.nvim_create_autocmd
|
local autocmd = vim.api.nvim_create_autocmd
|
||||||
autocmd("FileType", { pattern = "html", command = [[EmmetInstall]] })
|
autocmd("FileType", { pattern = "html", command = [[EmmetInstall]] })
|
||||||
autocmd("FileType", { pattern = "css", command = [[EmmetInstall]] })
|
autocmd("FileType", { pattern = "css", command = [[EmmetInstall]] })
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>e", function()
|
vim.keymap.set("n", "<leader>le", function()
|
||||||
vim.cmd(string.format("Emmet %s", vim.fn.input("Emmet: ")))
|
vim.cmd(string.format("Emmet %s", vim.fn.input("Emmet: ")))
|
||||||
end)
|
end)
|
||||||
end
|
end,
|
||||||
}
|
}
|
||||||
|
4
lua/custom/plugins/file-browser.lua
Normal file
4
lua/custom/plugins/file-browser.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
return {
|
||||||
|
"nvim-telescope/telescope-file-browser.nvim",
|
||||||
|
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
|
||||||
|
}
|
13
lua/custom/plugins/live-server.lua
Normal file
13
lua/custom/plugins/live-server.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
return {
|
||||||
|
"aurum77/live-server.nvim",
|
||||||
|
opts = {},
|
||||||
|
cmd = {
|
||||||
|
"LiveServer",
|
||||||
|
"LiveServerStart",
|
||||||
|
"LiveServerStop",
|
||||||
|
"LiveServerInstall",
|
||||||
|
},
|
||||||
|
build = function()
|
||||||
|
require("live_server.util").install()
|
||||||
|
end,
|
||||||
|
}
|
@ -1,12 +1,13 @@
|
|||||||
return {
|
return {
|
||||||
"bluz71/vim-nightfly-colors",
|
"bluz71/vim-moonfly-colors",
|
||||||
name = "nightfly",
|
name = "moonfly",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
vim.cmd [[colorscheme nightfly]]
|
vim.cmd [[colorscheme moonfly]]
|
||||||
vim.g.nightflyCursorColor = true
|
vim.g.moonflyCursorColor = true
|
||||||
vim.g.nightflyNormalFloat = true
|
vim.g.moonflyNormalFloat = true
|
||||||
|
vim.g.moonflyTransparent = true
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ return {
|
|||||||
-- Group.new("DiagnosticUnderlineInfo", colors.none, colors.none, styles.undercurl, cInfo)
|
-- Group.new("DiagnosticUnderlineInfo", colors.none, colors.none, styles.undercurl, cInfo)
|
||||||
-- Group.new("DiagnosticUnderlineHint", colors.none, colors.none, styles.undercurl, cHint)
|
-- Group.new("DiagnosticUnderlineHint", colors.none, colors.none, styles.undercurl, cHint)
|
||||||
-- Group.new("Macro", groups.PreProc, colors.none, styles.italic + styles.bold)
|
-- Group.new("Macro", groups.PreProc, colors.none, styles.italic + styles.bold)
|
||||||
-- Group.link("Function", groups.Function, colors.none, styles.italic)
|
-- Group.new("Function", groups.Function, colors.none, styles.italic)
|
||||||
-- Group.new("Conditional", groups.Statement, colors.none, styles.italic)
|
-- Group.new("Conditional", groups.Statement, colors.none, styles.italic)
|
||||||
-- Group.new("Boolean", groups.Constant, colors.none, styles.bold)
|
-- Group.new("Boolean", groups.Constant, colors.none, styles.bold)
|
||||||
-- Group.new("HoverBorder", colors.yellow, colors.none, styles.NONE)
|
-- Group.new("HoverBorder", colors.yellow, colors.none, styles.NONE)
|
||||||
|
@ -3,10 +3,10 @@ return {
|
|||||||
-- lazy = false,
|
-- lazy = false,
|
||||||
-- priority = 1000,
|
-- priority = 1000,
|
||||||
-- config = function()
|
-- config = function()
|
||||||
-- vim.o.background = 'dark' -- or 'light'
|
-- vim.o.background = 'light' -- or 'light'
|
||||||
-- require('solarized').setup({
|
-- require('solarized').setup({
|
||||||
-- transparent = true,
|
-- transparent = true,
|
||||||
-- theme = 'neo',
|
-- theme = 'default',
|
||||||
-- styles = {
|
-- styles = {
|
||||||
-- functions = { bold = true, italic = false }
|
-- functions = { bold = true, italic = false }
|
||||||
-- },
|
-- },
|
||||||
@ -14,5 +14,3 @@ return {
|
|||||||
-- vim.cmd.colorscheme 'solarized'
|
-- vim.cmd.colorscheme 'solarized'
|
||||||
-- end,
|
-- end,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- vim: sw=2 ts=2 sts=2 et
|
|
||||||
|
6
lua/custom/plugins/surround.lua
Normal file
6
lua/custom/plugins/surround.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
"kylechui/nvim-surround",
|
||||||
|
version = "*",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {},
|
||||||
|
}
|
@ -4,6 +4,7 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
extra_groups = {
|
extra_groups = {
|
||||||
"NormalFloat", -- plugins which have float panel such as Lazy, Mason, LspInfo
|
"NormalFloat", -- plugins which have float panel such as Lazy, Mason, LspInfo
|
||||||
|
"FloatBorder",
|
||||||
"NvimTreeNormal" -- NvimTree
|
"NvimTreeNormal" -- NvimTree
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2,12 +2,26 @@ return {
|
|||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
plugins = {
|
plugins = {
|
||||||
tmux = { enabled = true },
|
|
||||||
kitty = {
|
kitty = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
font = "+5",
|
font = "+3",
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
wezterm = {
|
||||||
|
enabled = true,
|
||||||
|
font = "+3"
|
||||||
|
},
|
||||||
|
tmux = { enabled = true },
|
||||||
|
},
|
||||||
|
on_open = function()
|
||||||
|
vim.fn.system("kitty @ set-font-size +5")
|
||||||
|
vim.fn.system("tmux set status off")
|
||||||
|
vim.fn.system("tmux set -w pane-border-status off")
|
||||||
|
end,
|
||||||
|
on_close = function()
|
||||||
|
vim.fn.system("kitty @ set-font-size +0")
|
||||||
|
vim.fn.system("tmux set status on")
|
||||||
|
vim.fn.system("tmux set -w pane-border-status on")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>", { silent = true })
|
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>", { silent = true })
|
||||||
|
@ -29,9 +29,9 @@ vim.opt.isfname:append("@-@")
|
|||||||
vim.opt.updatetime = 50
|
vim.opt.updatetime = 50
|
||||||
|
|
||||||
vim.opt.colorcolumn = "80"
|
vim.opt.colorcolumn = "80"
|
||||||
vim.cmd[[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]]
|
||||||
vim.api.nvim_create_autocmd({"WinLeave"}, {pattern = "*", callback = function() vim.opt.colorcolumn = "0" end,})
|
vim.api.nvim_create_autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, })
|
||||||
vim.api.nvim_create_autocmd({"WinEnter"}, {pattern = "*", callback = function() vim.opt.colorcolumn = "80" end,})
|
vim.api.nvim_create_autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "80" end, })
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user