From 2e8f00d17dfeed0479c00f601f2351a3f1116f25 Mon Sep 17 00:00:00 2001 From: Nikurasu Date: Tue, 20 Dec 2022 18:21:09 +0100 Subject: [PATCH] Added nvim lua config --- nvim/init.lua | 26 ++++++++++++++++++++++++++ starship/starship.toml | 4 ++++ 2 files changed, 30 insertions(+) create mode 100644 nvim/init.lua diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..d25b30d --- /dev/null +++ b/nvim/init.lua @@ -0,0 +1,26 @@ +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.ignorecase = true +vim.opt.tabstop = 2 +vim.opt.shiftwidth = 2 +vim.opt.expandtab = true + +require'nvim-treesitter.configs'.setup { + ensure_installed = { "c", "lua", "kotlin", "javascript", "typescript" }, + highlight = { + enable = true, + additional_vim_regex_highlighting = false, + }, +} + +return require('packer').startup(function(use) + use 'wbthomason/packer.nvim' + use { + 'nvim-treesitter/nvim-treesitter', + run = function() + local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) + ts_update() + end, + } +end) + diff --git a/starship/starship.toml b/starship/starship.toml index 9afeb9a..c04cc0a 100644 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -21,11 +21,15 @@ symbol = " " [conda] symbol = " " +[cmd_duration] +style = "bold purple" + [dart] symbol = " " [directory] read_only = " " +style = "bold blue" [docker_context] symbol = " "