feat: some shit
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
local cmd = vim.cmd
|
||||
local config_group = vim.api.nvim_create_augroup("Config", {})
|
||||
|
||||
local config_group = vim.api.nvim_create_augroup('Config', {})
|
||||
vim.api.nvim_create_autocmd({ 'TextYankPost' }, {
|
||||
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
||||
group = config_group,
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
@@ -22,9 +21,9 @@ vim.api.nvim_create_autocmd({ 'TextYankPost' }, {
|
||||
-- command = 'silent! loadview'
|
||||
-- })
|
||||
|
||||
cmd [[
|
||||
vim.cmd([[
|
||||
augroup filetypedetect
|
||||
au BufNewFile,BufRead *.frag setl ft=glsl
|
||||
au BufNewFile,BufRead *.vert setl ft=glsl
|
||||
augroup END
|
||||
]]
|
||||
]])
|
||||
|
@@ -12,7 +12,7 @@ local remap = { noremap = true }
|
||||
g.mapleader = " "
|
||||
|
||||
-- Allows to easily exit terminal mode
|
||||
map('t', '<Esc>', [[<C-\><C-n>]], remap)
|
||||
-- map('t', '<Esc>', [[<C-\><C-n>]], remap)
|
||||
|
||||
map("n", "<C-o>", ":Telescope find_files<CR>", options)
|
||||
map("n", "<C-f>", ":lua require'telescope.builtin'.live_grep{ cwd = vim.fn.getcwd() }<CR>", options)
|
||||
|
@@ -30,13 +30,25 @@ return packer.startup(function(use)
|
||||
|
||||
use("rktjmp/fwatch.nvim") -- Used to check dark/light theme
|
||||
use({ "catppuccin/nvim", as = "catppuccin" })
|
||||
-- use 'folke/tokyonight.nvim'
|
||||
use("nvim-lualine/lualine.nvim")
|
||||
|
||||
--------------------
|
||||
-- Layout Plugins --
|
||||
--------------------
|
||||
|
||||
use("dstein64/nvim-scrollview") -- ScrollBars
|
||||
use({
|
||||
"petertriho/nvim-scrollbar",
|
||||
config = function()
|
||||
require("configs.scrollbar")
|
||||
end
|
||||
})
|
||||
use({
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
require('gitsigns').setup()
|
||||
end
|
||||
})
|
||||
use("akinsho/nvim-toggleterm.lua")
|
||||
|
||||
use({
|
||||
@@ -50,14 +62,12 @@ return packer.startup(function(use)
|
||||
use({
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
requires = { "kyazdani42/nvim-web-devicons" },
|
||||
cmd = "NvimTreeToggle",
|
||||
config = function()
|
||||
require("configs.tree")
|
||||
end,
|
||||
})
|
||||
use("nvim-lua/popup.nvim")
|
||||
use("goolord/alpha-nvim") -- startup screen
|
||||
-- use("Pocco81/true-zen.nvim")
|
||||
use({
|
||||
"numToStr/Comment.nvim",
|
||||
event = "BufReadPre",
|
||||
@@ -65,7 +75,6 @@ return packer.startup(function(use)
|
||||
require("Comment").setup()
|
||||
end,
|
||||
})
|
||||
-- use("gfeiyou/command-center.nvim")
|
||||
use("glepnir/lspsaga.nvim") -- better windows for lsp replace, goto definition etc...
|
||||
|
||||
---------------------
|
||||
@@ -134,8 +143,10 @@ return packer.startup(function(use)
|
||||
},
|
||||
event = { "BufReadPre", "CmdlineChanged" },
|
||||
config = function()
|
||||
require("configs.autocomplete")
|
||||
require("configs.snippets")
|
||||
vim.schedule(function()
|
||||
require("configs.autocomplete")
|
||||
require("configs.snippets")
|
||||
end)
|
||||
end,
|
||||
})
|
||||
|
||||
|
@@ -1,43 +0,0 @@
|
||||
require("nvim-tundra").setup({
|
||||
transparent_background = true,
|
||||
editor = {
|
||||
search = {},
|
||||
substitute = {},
|
||||
},
|
||||
syntax = {
|
||||
booleans = { bold = true, italic = true },
|
||||
comments = { bold = true, italic = true },
|
||||
conditionals = {},
|
||||
constants = { bold = true },
|
||||
functions = {},
|
||||
keywords = {},
|
||||
loops = {},
|
||||
numbers = { bold = true },
|
||||
operators = { bold = true },
|
||||
punctuation = {},
|
||||
strings = {},
|
||||
types = { italic = true },
|
||||
},
|
||||
diagnostics = {
|
||||
errors = {},
|
||||
warnings = {},
|
||||
information = {},
|
||||
hints = {},
|
||||
},
|
||||
plugins = {
|
||||
lsp = true,
|
||||
treesitter = true,
|
||||
cmp = true,
|
||||
context = true,
|
||||
dbui = true,
|
||||
gitsigns = true,
|
||||
telescope = true,
|
||||
},
|
||||
overwrite = {
|
||||
colors = {},
|
||||
highlights = {},
|
||||
},
|
||||
})
|
||||
|
||||
vim.opt.background = "dark"
|
||||
vim.cmd("colorscheme tundra")
|
@@ -1,50 +0,0 @@
|
||||
-- Enable Theming / Syntax
|
||||
vim.g.catppuccin_flavour = "mocha" -- latte, frappe, macchiato, mocha
|
||||
|
||||
local cat = require("catppuccin")
|
||||
cat.setup({
|
||||
transparent_background = true,
|
||||
compile = {
|
||||
enabled = true,
|
||||
path = vim.fn.stdpath("cache") .. "/catppuccin",
|
||||
},
|
||||
styles = {
|
||||
comments = { "italic" },
|
||||
strings = { "italic" },
|
||||
},
|
||||
integrations = {
|
||||
gitsigns = true,
|
||||
telescope = true,
|
||||
-- treesitter = true,
|
||||
cmp = true,
|
||||
lsp_saga = true,
|
||||
notify = true,
|
||||
nvimtree = {
|
||||
enabled = true,
|
||||
show_root = false,
|
||||
},
|
||||
dap = {
|
||||
enabled = true,
|
||||
enable_ui = true,
|
||||
},
|
||||
native_lsp = {
|
||||
enabled = true,
|
||||
},
|
||||
ts_rainbow = true,
|
||||
indent_blankline = {
|
||||
enabled = true,
|
||||
colored_indent_levels = false,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- require("nightfox").setup({
|
||||
-- options = {
|
||||
-- transparent = true,
|
||||
-- },
|
||||
-- })
|
||||
|
||||
vim.cmd("colorscheme catppuccin")
|
||||
|
||||
require("utils.theme-reloader")
|
||||
require("configs.lualine")
|
Reference in New Issue
Block a user