mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 21:00:38 +00:00
64 lines
1.4 KiB
Lua
64 lines
1.4 KiB
Lua
-- load all plugins
|
|
require "pluginList"
|
|
require "misc-utils"
|
|
|
|
require "top-bufferline"
|
|
require "statusline"
|
|
|
|
require("colorizer").setup()
|
|
require("neoscroll").setup() -- smooth scroll
|
|
|
|
-- lsp stuff
|
|
require "nvim-lspconfig"
|
|
|
|
local cmd = vim.cmd
|
|
local g = vim.g
|
|
|
|
g.mapleader = " "
|
|
g.auto_save = 0
|
|
|
|
-- colorscheme related stuff
|
|
cmd "syntax on"
|
|
|
|
local base16 = require "base16"
|
|
base16(base16.themes["onedark"], true)
|
|
|
|
require "highlights"
|
|
|
|
-- blankline
|
|
|
|
g.indentLine_enabled = 1
|
|
g.indent_blankline_char = "▏"
|
|
|
|
g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
|
|
g.indent_blankline_buftype_exclude = {"terminal"}
|
|
|
|
g.indent_blankline_show_trailing_blankline_indent = false
|
|
g.indent_blankline_show_first_indent_level = false
|
|
|
|
require "treesitter-nvim"
|
|
require "mappings"
|
|
|
|
require "telescope-nvim"
|
|
require "nvimTree" -- file tree stuff
|
|
require "file-icons"
|
|
|
|
-- git signs , lsp symbols etc
|
|
require "gitsigns-nvim"
|
|
require("nvim-autopairs").setup()
|
|
require("lspkind").init()
|
|
|
|
-- hide line numbers , statusline in specific buffers!
|
|
vim.api.nvim_exec(
|
|
[[
|
|
au BufEnter term://* setlocal nonumber
|
|
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
|
|
au BufEnter term://* set laststatus=0
|
|
]],
|
|
false
|
|
)
|
|
|
|
require "zenmode"
|
|
require "whichkey"
|
|
require "dashboard"
|
|
require("nvim_comment").setup()
|