netrw and colorscheme

This commit is contained in:
Nikurasu 2023-02-23 15:56:28 +01:00
parent 8bf98bb84c
commit f97605d15d
Signed by: Nikurasu
GPG key ID: 9E7F14C03EF1F271

View file

@ -12,6 +12,7 @@ require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
use 'neovim/nvim-lspconfig'
use 'nvim-treesitter/nvim-treesitter'
use { "catppuccin/nvim", as = "catppuccin" }
use {
'hrsh7th/nvim-cmp',
requires = { 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-cmdline', 'hrsh7th/cmp-path', 'hrsh7th/cmp-nvim-lua', 'onsails/lspkind.nvim', 'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip' }
@ -31,11 +32,25 @@ if is_bootstrap then
return
end
-- colorscheme
require("catppuccin").setup({
flavour = "frappe",
transparent_background = true,
})
vim.cmd.colorscheme 'catppuccin'
-- Some basic settings
vim.wo.number = true
vim.wo.relativenumber = true
vim.o.pumheight = 20
-- Netrw
vim.g.netrw_banner = 0
vim.g.netrw_liststyle = 3
-- Additional keybinds if lsp running
local on_attach = function(client, bufnr)
local bufopts = { noremap=true, silent=true, buffer=bufnr }