summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/lua/plugs-config/asyncomplete.lua13
-rw-r--r--.config/nvim/lua/plugs-config/floaterm.lua9
-rw-r--r--.config/nvim/lua/plugs-config/lualine.lua40
3 files changed, 62 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugs-config/asyncomplete.lua b/.config/nvim/lua/plugs-config/asyncomplete.lua
new file mode 100644
index 0000000..da28c37
--- /dev/null
+++ b/.config/nvim/lua/plugs-config/asyncomplete.lua
@@ -0,0 +1,13 @@
+vim.cmd [[
+autocmd User asyncomplete_setup call asyncomplete#register_source(
+ \ asyncomplete#sources#clang#get_source_options({
+ \ 'config': {
+ \ 'clang_path': '/usr/bin/cc',
+ \ 'clang_args': {
+ \ 'default': ['-I/usr/include'],
+ \ 'c': ['-std=c89', '-I/usr/include'],
+ \ 'cpp': ['-std=c++98', '-I/usr/include']
+ \ }
+ \ }
+ \ }))
+]]
diff --git a/.config/nvim/lua/plugs-config/floaterm.lua b/.config/nvim/lua/plugs-config/floaterm.lua
new file mode 100644
index 0000000..7f80d65
--- /dev/null
+++ b/.config/nvim/lua/plugs-config/floaterm.lua
@@ -0,0 +1,9 @@
+vim.g.floaterm_autoinsert = 1
+vim.g.floaterm_width = 0.6
+vim.g.floaterm_height = 0.45
+vim.g.floaterm_wintitle = 0
+vim.g.floaterm_autoclose = 1
+vim.g.floaterm_position = 'bottom'
+vim.g.floaterm_gitcommit = 'split'
+vim.g.floaterm_wintype = 'floating'
+vim.g.floaterm_rootmarkers = { '.project', '.git', '.hg', '.svn', '.root', '.gitignore', '.fslckout', '.fossil-settings' }
diff --git a/.config/nvim/lua/plugs-config/lualine.lua b/.config/nvim/lua/plugs-config/lualine.lua
new file mode 100644
index 0000000..ef1c2c3
--- /dev/null
+++ b/.config/nvim/lua/plugs-config/lualine.lua
@@ -0,0 +1,40 @@
+require('lualine').setup {
+ options = {
+ icons_enabled = true,
+ theme = 'gruvbox',
+ section_separators = { left = '', right = '' },
+ component_separators = { left = '', right = '' },
+ disabled_filetypes = {
+ statusline = {},
+ winbar = {},
+ },
+ ignore_focus = {},
+ always_divide_middle = true,
+ globalstatus = false,
+ refresh = {
+ statusline = 1000,
+ tabline = 1000,
+ winbar = 1000,
+ }
+ },
+ sections = {
+ lualine_a = {'mode'},
+ lualine_b = {'branch', 'diff', 'diagnostics'},
+ lualine_c = {'filename'},
+ lualine_x = {},
+ lualine_y = {'filetype'},
+ lualine_z = {'location'}
+ },
+ inactive_sections = {
+ lualine_a = {},
+ lualine_b = {},
+ lualine_c = {'filename'},
+ lualine_x = {},
+ lualine_y = {},
+ lualine_z = {}
+ },
+ tabline = {},
+ winbar = {},
+ inactive_winbar = {},
+ extensions = {}
+}