change stuff i guess
This commit is contained in:
parent
65128a7629
commit
bfd59534b4
27
init.lua
27
init.lua
|
@ -1,12 +1,23 @@
|
|||
-- _.gd8888888bp._
|
||||
-- ████████╗██████╗ ██╗██╗ ██╗██╗ ██╗ .g88888888888888888p.
|
||||
-- ╚══██╔══╝██╔══██╗██║╚██╗██╔╝╚██╗ ██╔╝ .d8888P"" ""Y8888b.
|
||||
-- ██║ ██████╔╝██║ ╚███╔╝ ╚████╔╝ "Y8P" "Y8P'
|
||||
-- ██║ ██╔══██╗██║ ██╔██╗ ╚██╔╝ `. ,'
|
||||
-- ██║ ██║ ██║██║██╔╝ ██╗ ██║ \ .-. /
|
||||
-- ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝ \ (___) /
|
||||
-- .------------------._______________________:__________j
|
||||
-- / | | |`-.,_
|
||||
-- \###################|######################|###########|,-'`
|
||||
-- `------------------' : ___ l
|
||||
-- / ( ) \
|
||||
-- / `-' \
|
||||
-- ,' `.
|
||||
-- Listen up, you motherfuckers, .d8b. .d8b.
|
||||
-- Those Ivy League dopes, they wanna "Y8888p.. ,.d8888P"
|
||||
-- mock us. Tell 'em all this is war. "Y88888888888888888P"
|
||||
-- And not fighting a war is for suckers. ""YY8888888PP""
|
||||
|
||||
|
||||
-- ████████╗██████╗ ██╗██╗ ██╗██╗ ██╗
|
||||
-- ╚══██╔══╝██╔══██╗██║╚██╗██╔╝╚██╗ ██╔╝
|
||||
-- ██║ ██████╔╝██║ ╚███╔╝ ╚████╔╝
|
||||
-- ██║ ██╔══██╗██║ ██╔██╗ ╚██╔╝
|
||||
-- ██║ ██║ ██║██║██╔╝ ██╗ ██║
|
||||
-- ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ ╚═╝
|
||||
|
||||
|
||||
-- Setup Lazy.nvim and plugins
|
||||
require("plugins")
|
||||
|
@ -15,8 +26,6 @@ require("plugins")
|
|||
require("options")
|
||||
|
||||
|
||||
|
||||
|
||||
if vim.g.neovide then
|
||||
vim.o.guifont = "FiraCode Nerd Font:h14"
|
||||
vim.g.neovide_scale_factor = 1.0
|
||||
|
|
|
@ -1,7 +1 @@
|
|||
-- vim.opt.termguicolors = true
|
||||
-- vim.opt.background = "dark"
|
||||
|
||||
-- vim.g.onedark_config = { style = 'darker' }
|
||||
vim.cmd("colorscheme carbonfox")
|
||||
-- vim.opt.background = "dark" -- set this to dark or light
|
||||
-- vim.cmd.colorscheme "oxocarbon"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
require("options.colors")
|
||||
require("options.opts")
|
||||
require("options.keybind")
|
||||
require("options.opts")
|
||||
|
|
|
@ -12,10 +12,17 @@ map('n', '<C-space>', '<cmd>Telescope buffers<CR>', options)
|
|||
-- slef explanitory
|
||||
map("n", "<leader>tw", "<cmd>lua MiniTrailspace.trim()<CR>", options)
|
||||
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
vim.keymap.set("n", "<leader>fo", function()
|
||||
require("oil").open()
|
||||
end)
|
||||
|
||||
|
||||
map("n", "<leader>ff", "<cmd>Telescope find_files<CR>", options)
|
||||
map("n", "<leader>fs", "<cmd>Telescope current_buffer_fuzzy_find<CR>", options)
|
||||
map("n", "<leader>gs", "<cmd>Telescope git_status<CR>", options)
|
||||
map("n", "<leader>gg", "<cmd>Telescope live_grep<CR>", options)
|
||||
|
||||
|
||||
-- remap keys so that they dont skip camelCase
|
||||
map("n", "w", "<Plug>CamelCaseMotion_w", cmd_options)
|
||||
map("n", "b", "<Plug>CamelCaseMotion_b", cmd_options)
|
||||
|
|
|
@ -16,10 +16,10 @@ o.termguicolors = true -- true colours for better experience
|
|||
o.wrap = false -- don't wrap lines
|
||||
o.backupcopy = "yes" -- fix weirdness for stuff that replaces the entire file when hot reloading
|
||||
|
||||
o.smarttab = false -- make tab behaviour smarter
|
||||
o.smarttab = false
|
||||
o.tabstop = 4
|
||||
o.softtabstop = 2
|
||||
o.shiftwidth = 2
|
||||
o.softtabstop = 4
|
||||
o.shiftwidth = 4
|
||||
|
||||
o.compatible = false -- disable compatibility with old vi
|
||||
o.showmatch = true -- show matches while searching for text
|
||||
|
@ -35,17 +35,15 @@ o.ttyfast = true
|
|||
o.cursorline = true
|
||||
o.splitbelow = true
|
||||
o.autochdir = true
|
||||
o.signcolumn="yes:1"
|
||||
o.signcolumn ="yes:1"
|
||||
o.shell = "/bin/zsh"
|
||||
o.splitright = false
|
||||
|
||||
vim.api.nvim_command("filetype off")
|
||||
vim.api.nvim_command("let &runtimepath.=',~/.vim/bundle/neoterm'")
|
||||
vim.api.nvim_command("filetype plugin on")
|
||||
vim.api.nvim_command("filetype plugin indent on")
|
||||
vim.api.nvim_command("syntax on")
|
||||
|
||||
|
||||
-- vim.api.nvim_command("filetype off")
|
||||
-- vim.api.nvim_command("let &runtimepath.=',~/.vim/bundle/neoterm'")
|
||||
-- vim.api.nvim_command("filetype plugin on")
|
||||
-- vim.api.nvim_command("filetype plugin indent on")
|
||||
-- vim.api.nvim_command("syntax on")
|
||||
|
||||
-- disable builtin plugins as they are not needed
|
||||
local disabled_built_ins = {
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
-- Credit: glepnir
|
||||
local lualine = require('lualine')
|
||||
|
||||
-- Color table for highlights
|
||||
-- stylua: ignore
|
||||
local colors = {
|
||||
bg = '#202328',
|
||||
fg = '#bbc2cf',
|
||||
|
@ -19,6 +17,7 @@ local colors = {
|
|||
red = '#ec5f67',
|
||||
}
|
||||
|
||||
|
||||
local conditions = {
|
||||
buffer_not_empty = function()
|
||||
return vim.fn.empty(vim.fn.expand('%:t')) ~= 1
|
||||
|
@ -36,31 +35,37 @@ local conditions = {
|
|||
-- Config
|
||||
local config = {
|
||||
options = {
|
||||
-- Disable sections and component separators
|
||||
component_separators = '',
|
||||
section_separators = '',
|
||||
theme = {
|
||||
-- We are going to use lualine_c an lualine_x as left and
|
||||
-- right section. Both are highlighted by c theme . So we
|
||||
-- are just setting default looks o statusline
|
||||
normal = { c = { fg = colors.fg, bg = colors.bg } },
|
||||
inactive = { c = { fg = colors.fg, bg = colors.bg } },
|
||||
|
||||
normal = {
|
||||
c = {
|
||||
fg = colors.fg,
|
||||
bg = colors.bg
|
||||
}
|
||||
},
|
||||
|
||||
inactive = {
|
||||
c = {
|
||||
fg = colors.fg,
|
||||
bg = colors.bg
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
sections = {
|
||||
-- these are to remove the defaults
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
-- These will be filled later
|
||||
lualine_c = {},
|
||||
lualine_x = {},
|
||||
},
|
||||
inactive_sections = {
|
||||
-- these are to remove the defaults
|
||||
lualine_a = {},
|
||||
lualine_b = {},
|
||||
lualine_y = {},
|
||||
|
@ -70,12 +75,10 @@ local config = {
|
|||
},
|
||||
}
|
||||
|
||||
-- Inserts a component in lualine_c at left section
|
||||
local function ins_left(component)
|
||||
table.insert(config.sections.lualine_c, component)
|
||||
end
|
||||
|
||||
-- Inserts a component in lualine_x at right section
|
||||
local function ins_right(component)
|
||||
table.insert(config.sections.lualine_x, component)
|
||||
end
|
||||
|
@ -84,19 +87,46 @@ ins_left {
|
|||
function()
|
||||
return '▊'
|
||||
end,
|
||||
color = { fg = colors.blue }, -- Sets highlighting of component
|
||||
padding = { left = 0, right = 1 }, -- We don't need space before this
|
||||
|
||||
color = { fg = colors.blue },
|
||||
|
||||
padding = {
|
||||
left = 0,
|
||||
right = 1
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
ins_left {
|
||||
-- mode component
|
||||
function()
|
||||
return ''
|
||||
return ''
|
||||
--return ''
|
||||
-- local mode_string = {
|
||||
-- n = 'Normal',
|
||||
-- i = 'Insert',
|
||||
-- v = 'Visual',
|
||||
-- V = 'Visual line',
|
||||
-- c = 'Change',
|
||||
-- no = 'dunno1',
|
||||
-- s = 'dunno2',
|
||||
-- S = 'dunno3',
|
||||
-- [''] = 'dunno4',
|
||||
-- ic = 'dunno5',
|
||||
-- R = 'dunno6',
|
||||
-- Rv = 'dunno7',
|
||||
-- cv = 'dunno8',
|
||||
-- ce = 'dunno9',
|
||||
-- r = 'dunno10',
|
||||
-- rm = 'dunno11',
|
||||
-- ['r?'] = 'dunno12',
|
||||
-- ['!'] = 'dunno13',
|
||||
-- t = 'dunno14',
|
||||
-- }
|
||||
-- return mode_string[vim.fn.mode()]
|
||||
--
|
||||
end,
|
||||
color = function()
|
||||
-- auto change color according to neovims mode
|
||||
local mode_color = {
|
||||
n = colors.blue,
|
||||
i = colors.red,
|
||||
|
@ -127,19 +157,29 @@ ins_left {
|
|||
|
||||
ins_left {
|
||||
'branch',
|
||||
icon = '',
|
||||
color = { fg = colors.violet, gui = 'bold' },
|
||||
icon = '',
|
||||
|
||||
color = {
|
||||
fg = colors.violet,
|
||||
gui = 'bold'
|
||||
},
|
||||
}
|
||||
|
||||
ins_left {
|
||||
'diff',
|
||||
-- Is it me or the symbol for modified us really weird
|
||||
symbols = { added = ' ', modified = ' ', removed = ' ' },
|
||||
|
||||
symbols = {
|
||||
added = ' ',
|
||||
modified = ' ',
|
||||
removed = ' '
|
||||
},
|
||||
|
||||
diff_color = {
|
||||
added = { fg = colors.green },
|
||||
modified = { fg = colors.orange },
|
||||
removed = { fg = colors.red },
|
||||
},
|
||||
|
||||
cond = conditions.hide_in_width,
|
||||
}
|
||||
|
||||
|
@ -147,8 +187,15 @@ ins_left {
|
|||
|
||||
ins_left {
|
||||
'diagnostics',
|
||||
|
||||
sources = { 'nvim_diagnostic' },
|
||||
symbols = { error = ' ', warn = ' ', info = ' ' },
|
||||
|
||||
symbols = {
|
||||
error = ' ',
|
||||
warn = ' ',
|
||||
info = ' '
|
||||
},
|
||||
|
||||
diagnostics_color = {
|
||||
color_error = { fg = colors.red },
|
||||
color_warn = { fg = colors.yellow },
|
||||
|
@ -156,8 +203,6 @@ ins_left {
|
|||
},
|
||||
}
|
||||
|
||||
-- Insert mid section. You can make any number of sections in neovim :)
|
||||
-- for lualine it's any number greater then 2
|
||||
ins_left {
|
||||
function()
|
||||
return '%='
|
||||
|
@ -165,24 +210,27 @@ ins_left {
|
|||
}
|
||||
|
||||
|
||||
|
||||
ins_left {
|
||||
'filename',
|
||||
cond = conditions.buffer_not_empty,
|
||||
color = { fg = colors.magenta, gui = 'bold' },
|
||||
|
||||
color = {
|
||||
fg = colors.magenta,
|
||||
gui = 'bold'
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ins_right {
|
||||
-- filesize component
|
||||
'filesize',
|
||||
cond = conditions.buffer_not_empty,
|
||||
'filetype',
|
||||
colored = true,
|
||||
icon_only = false,
|
||||
icon = { align = 'right' }
|
||||
}
|
||||
|
||||
ins_right {
|
||||
'progress',
|
||||
|
||||
color = {
|
||||
fg = colors.fg,
|
||||
gui = 'bold'
|
||||
|
@ -190,37 +238,39 @@ ins_right {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
-- Add components to right sections
|
||||
ins_right {
|
||||
'o:encoding', -- option component same as &encoding in viml
|
||||
fmt = string.upper, -- I'm not sure why it's upper case either ;)
|
||||
cond = conditions.hide_in_width,
|
||||
color = { fg = colors.green, gui = 'bold' },
|
||||
}
|
||||
'o:encoding',
|
||||
|
||||
ins_right {
|
||||
'fileformat',
|
||||
fmt = string.upper,
|
||||
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
|
||||
cond = conditions.hide_in_width,
|
||||
|
||||
color = {
|
||||
fg = colors.green,
|
||||
gui = 'bold'
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
ins_right {
|
||||
'fileformat',
|
||||
|
||||
fmt = string.upper,
|
||||
icons_enabled = false,
|
||||
|
||||
color = {
|
||||
fg = colors.green,
|
||||
gui = 'bold'
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
ins_right {
|
||||
function()
|
||||
return '▊'
|
||||
end,
|
||||
color = {
|
||||
fg = colors.blue
|
||||
},
|
||||
padding = {
|
||||
left = 1
|
||||
},
|
||||
|
||||
color = { fg = colors.blue },
|
||||
padding = { left = 1 },
|
||||
}
|
||||
|
||||
-- Now don't forget to initialize lualine
|
||||
lualine.setup(config)
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
local wilder = require('wilder')
|
||||
wilder.setup({modes = {':', '/', '?'}})
|
||||
|
||||
|
||||
wilder.setup({
|
||||
modes = {':', '/', '?'}
|
||||
})
|
||||
|
||||
|
||||
wilder.set_option('renderer', wilder.renderer_mux({
|
||||
|
@ -18,7 +19,6 @@ wilder.set_option('renderer', wilder.renderer_mux({
|
|||
}))
|
||||
|
||||
|
||||
|
||||
wilder.set_option('renderer', wilder.popupmenu_renderer({
|
||||
highlighter = wilder.basic_highlighter(),
|
||||
left = {' ', wilder.popupmenu_devicons()},
|
||||
|
|
Loading…
Reference in a new issue