diff options
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | lua/lsp/dart-ls.lua | 11 | ||||
-rw-r--r-- | lua/lsp/php-ls.lua | 4 | ||||
-rw-r--r-- | lua/nv-floaterm/init.lua | 1 | ||||
-rw-r--r-- | lua/nv-globals.lua | 6 | ||||
-rw-r--r-- | lua/plugins.lua | 3 | ||||
-rw-r--r-- | lua/settings.lua | 1 |
7 files changed, 27 insertions, 1 deletions
@@ -45,6 +45,8 @@ vim.cmd('source ~/.config/nvim/vimscript/functions.vim') -- LSP require('lsp') require('lsp.clangd') +require('lsp.php-ls') +require('lsp.dart-ls') require('lsp.lua-ls') require('lsp.bash-ls') require('lsp.go-ls') diff --git a/lua/lsp/dart-ls.lua b/lua/lsp/dart-ls.lua new file mode 100644 index 00000000..99f41311 --- /dev/null +++ b/lua/lsp/dart-ls.lua @@ -0,0 +1,11 @@ +require'lspconfig'.dartls.setup{ + cmd = { "dart", O.dart.sdk_path, "--lsp" }, + on_attach = require'lsp'.common_on_attach, + init_options = { + closingLabels = false, + flutterOutline = false, + onlyAnalyzeProjectsWithOpenFiles = false, + outline = false, + suggestFromUnimportedLibraries = true + } +}
\ No newline at end of file diff --git a/lua/lsp/php-ls.lua b/lua/lsp/php-ls.lua new file mode 100644 index 00000000..abc90092 --- /dev/null +++ b/lua/lsp/php-ls.lua @@ -0,0 +1,4 @@ +require'lspconfig'.intelephense.setup { + cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" }, + on_attach = require'lsp'.common_on_attach +}
\ No newline at end of file diff --git a/lua/nv-floaterm/init.lua b/lua/nv-floaterm/init.lua index 633df350..b8ecbd40 100644 --- a/lua/nv-floaterm/init.lua +++ b/lua/nv-floaterm/init.lua @@ -6,6 +6,7 @@ vim.g.floaterm_keymap_new = '<F4>' vim.g.floaterm_title='' vim.g.floaterm_gitcommit='floaterm' +vim.g.floaterm_shell=O.shell vim.g.floaterm_autoinsert=1 vim.g.floaterm_width=0.8 vim.g.floaterm_height=0.8 diff --git a/lua/nv-globals.lua b/lua/nv-globals.lua index 845eccbd..62af193d 100644 --- a/lua/nv-globals.lua +++ b/lua/nv-globals.lua @@ -2,6 +2,8 @@ O = { auto_close_tree = 0, auto_complete = true, colorscheme = 'nvcode', + relative_number = true, + shell = "bash", python = { linter = '', -- @usage can be 'yapf', 'black' @@ -10,7 +12,9 @@ O = { isort = false, diagnostics = {virtual_text = true, signs = true, underline = true} }, - + dart = { + sdk_path = '/usr/lib/dart/bin/snapshots/analysis_server.dart.snapshot' + }, lua = { -- @usage can be 'lua-format' formatter = '', diff --git a/lua/plugins.lua b/lua/plugins.lua index 06cad5b4..84ce1920 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -87,6 +87,9 @@ return require('packer').startup(function(use) -- use 'gennaro-tedesco/nvim-jqx' -- use 'turbio/bracey.vim' + -- Flutter + use 'thosakwe/vim-flutter' + -- Registers -- use 'gennaro-tedesco/nvim-peekup' diff --git a/lua/settings.lua b/lua/settings.lua index 40fc24d4..db0178cf 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -19,6 +19,7 @@ vim.cmd('set sw=4') -- Change the number of space characters inserted for indent vim.bo.expandtab = true -- Converts tabs to spaces vim.bo.smartindent = true -- Makes indenting smart vim.wo.number = true -- 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 vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore |