aboutsummaryrefslogtreecommitdiff
path: root/Common/nvim/lua/plugins-conf.lua
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2022-10-11 12:26:59 +0200
committerjakobst1n <jakob.stendahl@outlook.com>2022-10-11 12:26:59 +0200
commitc5d3dc7fa1c7f04f2149ab04718f542de05be2ee (patch)
treeafda5c799a84ab730415ccab6e176785f6d0984a /Common/nvim/lua/plugins-conf.lua
parent37ac127214d212fb867ea165d7ace225ee040813 (diff)
downloaddotfiles-c5d3dc7fa1c7f04f2149ab04718f542de05be2ee.tar.gz
dotfiles-c5d3dc7fa1c7f04f2149ab04718f542de05be2ee.zip
Add vim config
Diffstat (limited to 'Common/nvim/lua/plugins-conf.lua')
-rw-r--r--Common/nvim/lua/plugins-conf.lua63
1 files changed, 63 insertions, 0 deletions
diff --git a/Common/nvim/lua/plugins-conf.lua b/Common/nvim/lua/plugins-conf.lua
new file mode 100644
index 0000000..e2a8f66
--- /dev/null
+++ b/Common/nvim/lua/plugins-conf.lua
@@ -0,0 +1,63 @@
+-- lualine
+require('lualine').setup {
+ options = { theme = 'onedark' },
+ sections = {
+ lualine_x = {'filetype'},
+ lualine_y = {}
+ },
+ tabline = {
+ lualine_a = {'buffers'},
+ lualine_b = {'branch'},
+ lualine_z = {'tabs'}
+ }
+}
+
+-- lsp
+require("nvim-lsp-installer").setup()
+local lspconfig = require'lspconfig'
+local coq = require "coq"
+
+-- setup language servers here
+local lsp_flags = {
+ -- This is the default in Nvim 0.7+
+ debounce_text_changes = 150,
+}
+
+local lspconfig = require('lspconfig')
+lspconfig['pyright'].setup{
+ on_attach = on_attach,
+ flags = lsp_flags,
+}
+lspconfig.ccls.setup {
+ single_file_support = true;
+ init_options = {
+ compilationDatabaseDirectory = "build";
+ index = {
+ threads = 0;
+ };
+ clang = {
+ excludeArgs = { "-frounding-math"} ;
+ };
+ }
+}
+
+lspconfig.ccls.setup{}
+lspconfig.intelephense.setup{}
+lspconfig.cssls.setup{}
+lspconfig.html.setup{}
+lspconfig.bashls.setup{}
+
+-- nvim-tree
+require("nvim-tree").setup()
+map("n", "<F3>", ":NvimTreeToggle<cr>", silentnoremap)
+
+-- TagBar
+map("n", "<F2>", ":TagbarToggle<cr>", silentnoremap)
+
+-- gitsigns
+require('gitsigns').setup()
+map("n", "<leader>s", ":Gitsigns toggle_current_line_blame<cr>", silentnoremap)
+
+-- fzf-lua
+map("n", ";", ":FzfLua files<cr>", silentnoremap)
+