summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorBiser Stoilov <[email protected]>2021-04-01 11:33:02 +0300
committerGitHub <[email protected]>2021-04-01 04:33:02 -0400
commit680b07b3f4302130368b80c93f5a516b174d5bc3 (patch)
tree8e02f91eb6c9a5bb7c719aaf412a22d1fb9eafa5 /lua
parentc2a937b622e61309f7b40361d6b85494c578a452 (diff)
Mix improvements (#206)
Diffstat (limited to 'lua')
-rw-r--r--lua/nv-barbar/init.lua1
-rw-r--r--lua/nv-dependency/init.lua1
-rw-r--r--lua/nv-globals.lua3
-rw-r--r--lua/plugins.lua7
-rw-r--r--lua/settings.lua6
5 files changed, 15 insertions, 3 deletions
diff --git a/lua/nv-barbar/init.lua b/lua/nv-barbar/init.lua
index 070bdb4f..49c1206b 100644
--- a/lua/nv-barbar/init.lua
+++ b/lua/nv-barbar/init.lua
@@ -1,2 +1,3 @@
vim.api.nvim_set_keymap('n', '<TAB>', ':BufferNext<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<S-TAB>', ':BufferPrevious<CR>', { noremap = true, silent = true })
+vim.api.nvim_set_keymap('n', '<S-x>', ':BufferClose<CR>', { noremap = true, silent = true })
diff --git a/lua/nv-dependency/init.lua b/lua/nv-dependency/init.lua
new file mode 100644
index 00000000..fc056d55
--- /dev/null
+++ b/lua/nv-dependency/init.lua
@@ -0,0 +1 @@
+require('dependency_assist').setup() \ No newline at end of file
diff --git a/lua/nv-globals.lua b/lua/nv-globals.lua
index 36c92c23..48b7432b 100644
--- a/lua/nv-globals.lua
+++ b/lua/nv-globals.lua
@@ -2,6 +2,9 @@ O = {
auto_close_tree = 0,
auto_complete = true,
colorscheme = 'nvcode',
+ hidden_files = true,
+ wrap_lines = true,
+ number = true,
relative_number = true,
shell = 'bash',
database = {
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 387e659d..db94d660 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -88,9 +88,15 @@ return require('packer').startup(function(use)
-- use 'gennaro-tedesco/nvim-jqx'
-- use 'turbio/bracey.vim'
+ -- Php
+ use 'phpactor/phpactor'
+
-- Flutter
use 'thosakwe/vim-flutter'
+ -- Dependency assistent
+ use 'akinsho/dependency-assist.nvim'
+
-- Registers
-- use 'gennaro-tedesco/nvim-peekup'
@@ -113,6 +119,7 @@ return require('packer').startup(function(use)
use 'andymass/vim-matchup'
use 'MattesGroeger/vim-bookmarks'
use 'windwp/nvim-autopairs'
+ use 'mbbill/undotree'
-- Database
use 'tpope/vim-dadbod'
diff --git a/lua/settings.lua b/lua/settings.lua
index db0178cf..1832c8e1 100644
--- a/lua/settings.lua
+++ b/lua/settings.lua
@@ -1,7 +1,7 @@
vim.cmd('set iskeyword+=-') -- treat dash separated words as a word text object"
vim.cmd('set shortmess+=c') -- Don't pass messages to |ins-completion-menu|.
-vim.o.hidden = true -- Required to keep multiple buffers open multiple buffers
-vim.wo.wrap = false -- Display long lines as just one line
+vim.o.hidden = O.hidden_files -- Required to keep multiple buffers open multiple buffers
+vim.wo.wrap = O.wrap_lines -- Display long lines as just one line
vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
vim.cmd('syntax on') -- move to next line with theses keys
vim.o.pumheight = 10 -- Makes popup menu smaller
@@ -18,7 +18,7 @@ vim.cmd('set ts=4') -- Insert 2 spaces for a tab
vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation
vim.bo.expandtab = true -- Converts tabs to spaces
vim.bo.smartindent = true -- Makes indenting smart
-vim.wo.number = true -- set numbered lines
+vim.wo.number = O.number -- set numbered lines
vim.wo.relativenumber = O.relative_number -- set relative number
vim.wo.cursorline = true -- Enable highlighting of the current line
vim.o.showtabline = 2 -- Always show tabs