summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/setup
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/setup')
-rw-r--r--.config/nvim/lua/setup/bufferline.lua14
-rw-r--r--.config/nvim/lua/setup/fugitive.lua6
-rw-r--r--.config/nvim/lua/setup/gitsigns.lua8
-rw-r--r--.config/nvim/lua/setup/indent-blankline.lua19
-rw-r--r--.config/nvim/lua/setup/kommentary.lua3
-rw-r--r--.config/nvim/lua/setup/lsp_signature.lua3
-rw-r--r--.config/nvim/lua/setup/lspconfig.lua28
-rw-r--r--.config/nvim/lua/setup/lualine.lua44
-rw-r--r--.config/nvim/lua/setup/nvim-cmp.lua52
-rw-r--r--.config/nvim/lua/setup/nvim-tree.lua26
-rw-r--r--.config/nvim/lua/setup/nvim-treesitter.lua5
-rw-r--r--.config/nvim/lua/setup/onedark.lua2
-rw-r--r--.config/nvim/lua/setup/telescope.lua32
13 files changed, 0 insertions, 242 deletions
diff --git a/.config/nvim/lua/setup/bufferline.lua b/.config/nvim/lua/setup/bufferline.lua
deleted file mode 100644
index 09f1234..0000000
--- a/.config/nvim/lua/setup/bufferline.lua
+++ /dev/null
@@ -1,14 +0,0 @@
-require("bufferline").setup {
- options = {
- offsets = { {
- filetype = "NvimTree",
- padding = 1,
- } },
- diagnostics = "nvim_lsp",
- max_name_length = 14,
- max_prefix_length = 13,
- tab_size = 20,
- separator_style = "thin",
- show_close_icon = false,
- },
-}
diff --git a/.config/nvim/lua/setup/fugitive.lua b/.config/nvim/lua/setup/fugitive.lua
deleted file mode 100644
index b48b4a9..0000000
--- a/.config/nvim/lua/setup/fugitive.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-vim.cmd([[
-silent !in-git-repo
-if v:shell_error
- call FugitiveDetect('~/.cfg')
-endif
-]])
diff --git a/.config/nvim/lua/setup/gitsigns.lua b/.config/nvim/lua/setup/gitsigns.lua
deleted file mode 100644
index dcfec15..0000000
--- a/.config/nvim/lua/setup/gitsigns.lua
+++ /dev/null
@@ -1,8 +0,0 @@
-require('gitsigns').setup {
- worktrees = {
- {
- toplevel = vim.env.HOME,
- gitdir = vim.env.HOME .. '/.config/dots'
- }
- }
-}
diff --git a/.config/nvim/lua/setup/indent-blankline.lua b/.config/nvim/lua/setup/indent-blankline.lua
deleted file mode 100644
index 543ded8..0000000
--- a/.config/nvim/lua/setup/indent-blankline.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-vim.cmd('highlight IndentBlanklineChar guifg=#3b414c gui=nocombine')
-
-require("ibl").setup {
- char = "┊",
- show_trailing_blankline_indent = false,
- filetype_exclude = {
- "help",
- "terminal",
- "alpha",
- "packer",
- "lspinfo",
- "TelescopePrompt",
- "TelescopeResults",
- "lsp-installer",
- "NvimTree",
- "",
- },
- buftype_exclude = { "terminal", "NvimTree" },
-}
diff --git a/.config/nvim/lua/setup/kommentary.lua b/.config/nvim/lua/setup/kommentary.lua
deleted file mode 100644
index 3ca608d..0000000
--- a/.config/nvim/lua/setup/kommentary.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-require('kommentary.config').configure_language("default", {
- prefer_single_line_comments = true,
-})
diff --git a/.config/nvim/lua/setup/lsp_signature.lua b/.config/nvim/lua/setup/lsp_signature.lua
deleted file mode 100644
index 65f7070..0000000
--- a/.config/nvim/lua/setup/lsp_signature.lua
+++ /dev/null
@@ -1,3 +0,0 @@
-require'lsp_signature'.setup {
- floating_window = false
-}
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua
deleted file mode 100644
index 8b83e47..0000000
--- a/.config/nvim/lua/setup/lspconfig.lua
+++ /dev/null
@@ -1,28 +0,0 @@
-local lspconfig = require("lspconfig")
-
-local function on_attach()
- vim.cmd("doautocmd User lspAttached")
-end
-
-lspconfig.lua_ls.setup {
- on_attach = on_attach,
- settings = {
- Lua = {
- diagnostics = {
- globals = { 'vim' }
- }
- }
- }
-}
-lspconfig.bashls.setup {
- on_attach = on_attach,
-}
-lspconfig.pyright.setup{
- on_attach = on_attach,
-}
-
--- local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
--- for type, icon in pairs(signs) do
--- local hl = "DiagnosticSign" .. type
--- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
--- end
diff --git a/.config/nvim/lua/setup/lualine.lua b/.config/nvim/lua/setup/lualine.lua
deleted file mode 100644
index 087a301..0000000
--- a/.config/nvim/lua/setup/lualine.lua
+++ /dev/null
@@ -1,44 +0,0 @@
-local lualine = require 'lualine'
-
-local config = {
- options = {
- icons_enabled = true,
- theme = 'onedark',
- component_separators = { left = '', right = '' },
- section_separators = { left = '', right = '' },
- globalstatus = true,
- },
- sections = {
- lualine_a = { 'mode' },
- lualine_b = { 'branch' },
- lualine_c = { 'filename', 'diagnostics' },
- lualine_x = { 'encoding', 'filetype' },
- lualine_y = { 'progress' },
- lualine_z = { 'location' },
- },
-}
-
-local function ins_right(component)
- table.insert(config.sections.lualine_x, 1, component)
-end
-
-ins_right {
- -- LSP Indicator
- function()
- local msg = ''
- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
- local clients = vim.lsp.get_active_clients()
- if next(clients) == nil then
- return msg
- end
- for _, client in ipairs(clients) do
- local filetypes = client.config.filetypes
- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
- return ' '
- end
- end
- return msg
- end,
-}
-
-lualine.setup(config)
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua
deleted file mode 100644
index 9e6ae05..0000000
--- a/.config/nvim/lua/setup/nvim-cmp.lua
+++ /dev/null
@@ -1,52 +0,0 @@
-table.unpack = table.unpack or unpack -- 5.1 compatibility
-
-local has_words_before = function()
- 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
-
-local luasnip = require("luasnip")
-local cmp = require("cmp")
-require("luasnip/loaders/from_vscode").lazy_load()
-vim.o.completeopt = 'menuone,noselect'
-
-cmp.setup {
- snippet = {
- expand = function(args)
- require('luasnip').lsp_expand(args.body)
- end,
- },
- mapping = cmp.mapping.preset.insert({
- ['<CR>'] = cmp.mapping.confirm({ select = true }),
- ['<C-n>'] = cmp.mapping.select_next_item(),
- ['<C-p>'] = cmp.mapping.select_prev_item(),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-d>'] = cmp.mapping.scroll_docs(-4),
- ['<C-e>'] = cmp.mapping.close(),
- ["<Tab>"] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_next_item()
- elseif luasnip.expand_or_jumpable() then
- luasnip.expand_or_jump()
- elseif has_words_before() then
- cmp.complete()
- else
- fallback()
- end
- end, { "i", "s" }),
-
- ["<S-Tab>"] = cmp.mapping(function(fallback)
- if cmp.visible() then
- cmp.select_prev_item()
- elseif luasnip.jumpable(-1) then
- luasnip.jump(-1)
- else
- fallback()
- end
- end, { "i", "s" }),
- }),
- sources = {
- { name = 'nvim_lsp' },
- { name = 'luasnip' },
- },
-}
diff --git a/.config/nvim/lua/setup/nvim-tree.lua b/.config/nvim/lua/setup/nvim-tree.lua
deleted file mode 100644
index 2903fb0..0000000
--- a/.config/nvim/lua/setup/nvim-tree.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-vim.cmd('highlight NvimTreeIndentMarker guifg=#3b414c gui=nocombine')
-
-require 'nvim-tree'.setup {
- hijack_cursor = true,
- renderer = {
- icons = {
- webdev_colors = true,
- },
- indent_markers = {
- enable = true,
- },
- },
- view = {
- side = "left",
- hide_root_folder = true,
- },
- git = {
- enable = false,
- ignore = false,
- },
- actions = {
- open_file = {
- resize_window = true,
- },
- },
-}
diff --git a/.config/nvim/lua/setup/nvim-treesitter.lua b/.config/nvim/lua/setup/nvim-treesitter.lua
deleted file mode 100644
index 7bccf73..0000000
--- a/.config/nvim/lua/setup/nvim-treesitter.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'nvim-treesitter.configs'.setup {
- highlight = {
- enable = true,
- },
-}
diff --git a/.config/nvim/lua/setup/onedark.lua b/.config/nvim/lua/setup/onedark.lua
deleted file mode 100644
index f571f09..0000000
--- a/.config/nvim/lua/setup/onedark.lua
+++ /dev/null
@@ -1,2 +0,0 @@
-require('onedark').load()
-vim.cmd('highlight CursorLineNr gui=bold guifg=#51afef')
diff --git a/.config/nvim/lua/setup/telescope.lua b/.config/nvim/lua/setup/telescope.lua
deleted file mode 100644
index da7a3ed..0000000
--- a/.config/nvim/lua/setup/telescope.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-require("telescope").setup {
- defaults = {
- path_display = {
- truncate = 3,
- },
- prompt_prefix = "  ",
- selection_caret = " ",
- entry_prefix = " ",
- -- initial_mode = "insert",
- -- selection_strategy = "reset",
- -- sorting_strategy = "ascending",
- -- layout_strategy = "horizontal",
- -- layout_config = {
- -- horizontal = {
- -- prompt_position = "top",
- -- preview_width = 0.55,
- -- results_width = 0.8,
- -- },
- -- vertical = {
- -- mirror = false,
- -- },
- -- width = 0.87,
- -- height = 0.80,
- -- preview_cutoff = 120,
- -- },
- file_ignore_patterns = { "node_modules" },
- winblend = 0,
- border = {},
- borderchars = { '─', '│', '─', '│', '┌', '┐', '┘', '└' },
- color_devicons = true,
- },
-}