diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-11-20 22:46:20 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-11-20 22:46:20 +0100 |
| commit | e248ebefcecc82f3b12da4ea0b3b8efd34252779 (patch) | |
| tree | 29f4240ec4c0f572114cd55074617be20f409fdd /config/nvim/init.lua | |
| parent | 3ab16167f2035aa7f4313a081d89d691161831b9 (diff) | |
| download | dotfiles-e248ebefcecc82f3b12da4ea0b3b8efd34252779.tar.gz dotfiles-e248ebefcecc82f3b12da4ea0b3b8efd34252779.tar.bz2 dotfiles-e248ebefcecc82f3b12da4ea0b3b8efd34252779.zip | |
Moved nvim plugins config in plugins.lua file, Switching to comments.nvim since the other one add a bug with blank lines
Diffstat (limited to 'config/nvim/init.lua')
| -rw-r--r-- | config/nvim/init.lua | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 7988cee..c4125fc 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -43,69 +43,12 @@ vim.opt.laststatus=2 -- always a statusline (all window) vim.opt.showcmd = true -- show current partial command in the bottom right vim.opt.showmode = false -- dont show current mode (i.e --INSERT--) --- colorscheme -vim.opt.termguicolors = true -vim.opt.background = "dark" -vim.cmd [[ colorscheme gruvbox ]] -vim.g.gruvbox_italic = 1 -vim.g.gruvbox_bold = 1 -vim.g.gruvbox_termcolors = 256 -vim.g.gruvbox_contrast_dark = 'medium' -vim.g.gruvbox_contrast_light = 'hard' -vim.g.gruvbox_invert_selection = 0 - -local actions = require('telescope.actions') -require('telescope').setup { - defaults = { - mappings = { - i = { - ['<C-j>'] = actions.move_selection_next, - ['<C-k>'] = actions.move_selection_previous, - ['<esc>'] = actions.close, - ['kj'] = actions.close, - } - }, - } -} - -require('lualine').setup { - options = { - theme = 'gruvbox', - icons_enabled = true, - section_separators = '', - component_separators = '' - } -} - -require('nvim-treesitter.configs').setup { - highlight = { - enable = true - }, - -- indent = { - -- enable = true - -- }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "gnn", - node_incremental = "grn", - scope_incremental = "grc", - node_decremental = "grm", - } - } -} -vim.cmd [[ highlight link pythonTSKeywordOperator Keyword ]] -- require 'nvim-treesitter.highlight' -- local hlmap = vim.treesitter.TSHighlighter.hl_map -- hlmap.error = nil - -require('nvim_comment').setup() - --- require('todo-comments').setup { - --- } +-- require('nvim_comment').setup() -- local on_attach = function(_, bufnr) -- local opts = {noremap = true, silent = true } |
