aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/init.lua
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-11-05 18:39:36 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-11-05 18:39:36 +0100
commitfccc165720bc8cfd8decc852414595468c65be61 (patch)
treef2bfc8879b594407025734af72e7ec5853a4fb9c /config/nvim/init.lua
parentba01aa4f0f2a1822df4cc77194d2668dfdaa7780 (diff)
downloaddotfiles-fccc165720bc8cfd8decc852414595468c65be61.tar.gz
dotfiles-fccc165720bc8cfd8decc852414595468c65be61.tar.bz2
dotfiles-fccc165720bc8cfd8decc852414595468c65be61.zip
Added neovim mappings and previous plugins
Diffstat (limited to 'config/nvim/init.lua')
-rw-r--r--config/nvim/init.lua18
1 files changed, 7 insertions, 11 deletions
diff --git a/config/nvim/init.lua b/config/nvim/init.lua
index 9113752..86e010e 100644
--- a/config/nvim/init.lua
+++ b/config/nvim/init.lua
@@ -1,9 +1,8 @@
require('plugins')
-- common
--- let mapleader = ' ' -- set leader key to space
--- let maplocalleader = '-' -- set file local leader key to backslash
--- vint: -ProhibitSetNoCompatible
+vim.g.mapleader = ' ' -- set leader key to space
+vim.g.maplocalleader = '-' -- set file local leader key to backslash
vim.opt.compatible = false -- not compatible with vi
vim.opt.number = true -- line number
vim.opt.numberwidth = 1 -- line numbers gutter autowidth
@@ -16,16 +15,15 @@ vim.opt.swapfile = false -- disable swap files
vim.opt.scrolloff = 2 -- line padding when scrolling
vim.opt.textwidth = 0 -- when line wrap occurs
vim.opt.wrapmargin = 0 -- disable auto line wrapping
+vim.opt.clipboard = 'unnamedplus' -- use system clipboard
+vim.g.c_syntax_for_h = 1 -- .h file use C filetype instead of C++
vim.opt.encoding = "utf-8" -- utf-8 encoding
--- vim.opt.scriptencoding = "utf-8"
--- vim.opt.formatoptions -= 't' -- do not auto break line > 89 character
-- filetype plugin indent on -- allow to add specific rules for certain type of file
-- set mouse=a " mouse scrolling (heretic)
vim.opt.shellredir = ">" -- don't inclue stderr when reading a command
-- intuitif split opening
vim.opt.splitbelow = true
vim.opt.splitright = true
--- vim.opt.fillchars = "vert:│" -- split separator
-- tab
vim.opt.expandtab = true -- tab to space
@@ -46,10 +44,6 @@ 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--)
--- -- fold
--- vim.opt.foldmethod=indent -- create fold based on the text indent
--- vim.opt.nofoldenable -- not folded by default
-
-- colorscheme
vim.opt.termguicolors = true
vim.opt.background = "dark"
@@ -64,6 +58,7 @@ vim.g.gruvbox_invert_selection = 0
require('lualine').setup {
options = {
theme = 'gruvbox',
+ icons_enabled = false,
section_separators = '',
component_separators = ''
}
@@ -87,9 +82,10 @@ require('nvim-treesitter.configs').setup {
}
}
+require('nvim_comment').setup()
+
require('mappings')
---
-- hi link juliaFunctionCall Identifier
-- hi link juliaParDelim Delimiter
--