Skip to content

Commit 8151c2c

Browse files
committed
enable nerd font and add go, g++ to treesitter and install their lsps
1 parent 982e2f4 commit 8151c2c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

init.lua

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102
vim.opt.number = true
103103
-- You can also add relative line numbers, to help with jumping.
104104
-- Experiment for yourself to see if you like it!
105-
-- vim.opt.relativenumber = true
105+
vim.opt.relativenumber = true
106106

107107
-- Enable mouse mode, can be useful for resizing splits for example!
108108
vim.opt.mouse = 'a'
@@ -605,9 +605,9 @@ require('lazy').setup({
605605
-- - settings (table): Override the default settings passed when initializing the server.
606606
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
607607
local servers = {
608-
-- clangd = {},
609-
-- gopls = {},
610-
-- pyright = {},
608+
clangd = {},
609+
gopls = {},
610+
pyright = {},
611611
-- rust_analyzer = {},
612612
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
613613
--
@@ -829,13 +829,14 @@ require('lazy').setup({
829829
-- change the command in the config to whatever the name of that colorscheme is.
830830
--
831831
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
832-
'folke/tokyonight.nvim',
832+
'catppuccin/nvim',
833833
priority = 1000, -- Make sure to load this before all the other start plugins.
834+
name = 'catppuccin',
834835
init = function()
835836
-- Load the colorscheme here.
836837
-- Like many other themes, this one has different styles, and you could load
837838
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
838-
vim.cmd.colorscheme 'tokyonight-night'
839+
vim.cmd.colorscheme 'catppuccin-macchiato'
839840

840841
-- You can configure highlights by doing something like:
841842
vim.cmd.hi 'Comment gui=none'
@@ -888,7 +889,7 @@ require('lazy').setup({
888889
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
889890
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
890891
opts = {
891-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
892+
ensure_installed = { 'python', 'cpp', 'go', 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
892893
-- Autoinstall languages that are not installed
893894
auto_install = true,
894895
highlight = {

0 commit comments

Comments
 (0)