Nvim cleanup.
This commit is contained in:
@@ -24,6 +24,7 @@ vim.o.splitright = true -- Open vertical splits to the right
|
|||||||
vim.o.splitbelow = true -- Open horizontal splits below
|
vim.o.splitbelow = true -- Open horizontal splits below
|
||||||
vim.o.timeoutlen = 300 -- Time (ms) to wait for a mapped sequence to complete
|
vim.o.timeoutlen = 300 -- Time (ms) to wait for a mapped sequence to complete
|
||||||
vim.o.autocomplete = true
|
vim.o.autocomplete = true
|
||||||
|
vim.o.showmode = false
|
||||||
vim.opt.clipboard = "unnamedplus"
|
vim.opt.clipboard = "unnamedplus"
|
||||||
vim.o.completeopt = 'menuone,noselect'
|
vim.o.completeopt = 'menuone,noselect'
|
||||||
vim.o.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
|
vim.o.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||||||
pattern = '*',
|
pattern = '*',
|
||||||
callback = function()
|
callback = function()
|
||||||
pcall(vim.treesitter.start)
|
pcall(vim.treesitter.start)
|
||||||
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,37 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
{ src = "https://github.com/romus204/tree-sitter-manager.nvim" },
|
||||||
{ src = "https://github.com/rebelot/kanagawa.nvim" },
|
{ src = "https://github.com/rebelot/kanagawa.nvim" },
|
||||||
{ src = "https://github.com/tribela/transparent.nvim" },
|
{ src = "https://github.com/tribela/transparent.nvim" },
|
||||||
|
{ src = "https://github.com/nvim-lualine/lualine.nvim" }
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd(":colorscheme kanagawa")
|
vim.cmd(":colorscheme kanagawa")
|
||||||
|
|
||||||
require("tree-sitter-manager").setup({})
|
require("tree-sitter-manager").setup({})
|
||||||
|
local theme = require('lualine.themes.kanagawa')
|
||||||
|
|
||||||
|
for _, mode in pairs(theme) do
|
||||||
|
if mode.b then mode.b.bg = '#16161D' end
|
||||||
|
if mode.c then mode.c.bg = '#16161D' end
|
||||||
|
if mode.x then mode.x.bg = '#16161D' end
|
||||||
|
if mode.y then mode.y.bg = '#16161D' end
|
||||||
|
if mode.z then mode.z.bg = '#16161D' end
|
||||||
|
end
|
||||||
|
|
||||||
|
require('lualine').setup({
|
||||||
|
options = {
|
||||||
|
theme = theme,
|
||||||
|
component_separators = '',
|
||||||
|
section_separators = '',
|
||||||
|
},
|
||||||
|
sections = {
|
||||||
|
lualine_a = {'mode'},
|
||||||
|
lualine_b = {},
|
||||||
|
lualine_c = {'filename'},
|
||||||
|
lualine_x = {'diagnostics'},
|
||||||
|
lualine_y = {},
|
||||||
|
lualine_z = {'lsp_status', 'location'},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
require("fzf-lua").setup()
|
require("fzf-lua").setup()
|
||||||
map("n", "<leader>f", ":lua FzfLua.files()<CR>")
|
map("n", "<leader>f", ":lua FzfLua.files()<CR>")
|
||||||
|
|||||||
Reference in New Issue
Block a user