summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:49:59 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-03 12:49:59 +0200
commita73737868a85609ba0e1ebbbcd33096ffbacd8c0 (patch)
treea7318266cd490df5b9a39e824da1baf932496507 /.config/nvim/lua/setup
parent280b092727fc3a0bb8a1735b53a517071dd475c6 (diff)
nvim: disable global status, formatting
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua1
-rw-r--r--.config/nvim/lua/setup/lualine.lua26
-rw-r--r--.config/nvim/lua/setup/nvim-cmp.lua2
-rw-r--r--.config/nvim/lua/setup/nvim-treesitter.lua2
4 files changed, 16 insertions, 15 deletions
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua
index 47fd84a..ad101a2 100644
--- a/.config/nvim/lua/setup/lspconfig.lua
+++ b/.config/nvim/lua/setup/lspconfig.lua
@@ -19,6 +19,7 @@ lspconfig.sumneko_lua.setup {
}
}
}
+
lspconfig.rust_analyzer.setup {
on_attach = on_attach,
}
diff --git a/.config/nvim/lua/setup/lualine.lua b/.config/nvim/lua/setup/lualine.lua
index 4d08844..2a792b7 100644
--- a/.config/nvim/lua/setup/lualine.lua
+++ b/.config/nvim/lua/setup/lualine.lua
@@ -1,25 +1,25 @@
-require'lualine'.setup {
+require 'lualine'.setup {
options = {
icons_enabled = true,
theme = 'onedark',
- component_separators = {left = '', right = ''},
- section_separators = {left = '', right = ''},
- disabled_filetypes = {'startify', 'terminal', 'netrw', 'NvimTree', 'packer'},
- globalstatus = true,
+ component_separators = { left = '', right = '' },
+ section_separators = { left = '', right = '' },
+ disabled_filetypes = { 'startify', 'terminal', 'netrw', 'NvimTree', 'packer' },
+ globalstatus = false,
},
sections = {
- lualine_a = {'mode'},
- lualine_b = {'branch'},
- lualine_c = {'filename', 'diagnostics'},
- lualine_x = {'encoding', 'filetype'},
- lualine_y = {'progress'},
- lualine_z = {'location'},
+ lualine_a = { 'mode' },
+ lualine_b = { 'branch' },
+ lualine_c = { 'filename', 'diagnostics' },
+ lualine_x = { 'encoding', 'filetype' },
+ lualine_y = { 'progress' },
+ lualine_z = { 'location' },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
- lualine_c = {'filename'},
- lualine_x = {'location'},
+ lualine_c = { 'filename' },
+ lualine_x = { 'location' },
lualine_y = {},
lualine_z = {},
},
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua
index 83b54cd..5b62d61 100644
--- a/.config/nvim/lua/setup/nvim-cmp.lua
+++ b/.config/nvim/lua/setup/nvim-cmp.lua
@@ -1,5 +1,5 @@
local has_words_before = function()
- local line, col = unpack(vim.api.nvim_win_get_cursor(0))
+ local line, col = table.unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
end
diff --git a/.config/nvim/lua/setup/nvim-treesitter.lua b/.config/nvim/lua/setup/nvim-treesitter.lua
index 42bfcbd..7bccf73 100644
--- a/.config/nvim/lua/setup/nvim-treesitter.lua
+++ b/.config/nvim/lua/setup/nvim-treesitter.lua
@@ -1,4 +1,4 @@
-require'nvim-treesitter.configs'.setup {
+require 'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},