Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge: nvim config #5

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/nvim/after/plugin/autopairs.rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ if (not status) then return end
autopairs.setup({
disable_filetype = { "TelescopePrompt" , "vim" },
})

36 changes: 36 additions & 0 deletions config/nvim/after/plugin/bufferline.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
local status, bufferline = pcall(require, "bufferline")
if (not status) then return end

bufferline.setup({
options = {
mode = "tabs",
separator_style = 'slant',
always_show_bufferline = false,
show_buffer_close_icons = false,
show_close_icon = false,
color_icons = true
},
highlights = {
separator = {
guifg = '#073642',
guibg = '#002b36',
},
separator_selected = {
guifg = '#073642',
},
background = {
guifg = '#657b83',
guibg = '#002b36'
},
buffer_selected = {
guifg = '#fdf6e3',
gui = "bold",
},
fill = {
guibg = '#073642'
}
},
})

vim.keymap.set('n', '<Tab>', '<Cmd>BufferLineCycleNext<CR>', {})
vim.keymap.set('n', '<S-Tab>', '<Cmd>BufferLineCyclePrev<CR>', {})
37 changes: 37 additions & 0 deletions config/nvim/after/plugin/cmp.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
local status, cmp = pcall(require, "cmp")
if (not status) then return end
local lspkind = require 'lspkind'

cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
mapping = cmp.mapping.preset.insert({
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true
}),
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'buffer' },
}),
formatting = {
format = lspkind.cmp_format({ with_text = false, maxwidth = 50 })
}
})

vim.cmd [[
set completeopt=menuone,noinsert,noselect
highlight! default link CmpItemKind CmpItemMenuDefault
]]

-- " Use <Tab> and <S-Tab> to navigate through popup menu
-- inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
-- inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
37 changes: 0 additions & 37 deletions config/nvim/after/plugin/cmp.rc.vim

This file was deleted.

6 changes: 6 additions & 0 deletions config/nvim/after/plugin/colorizer.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
local status, colorizer = pcall(require, "colorizer")
if (not status) then return end

colorizer.setup({
'*';
})
93 changes: 0 additions & 93 deletions config/nvim/after/plugin/defx.rc.vim

This file was deleted.

9 changes: 0 additions & 9 deletions config/nvim/after/plugin/fugitive.rc.vim

This file was deleted.

11 changes: 11 additions & 0 deletions config/nvim/after/plugin/git.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local status, git = pcall(require, "git")
if (not status) then return end

git.setup({
keymaps = {
-- Open blame window
blame = "<Leader>gb",
-- Open file/folder in git repository
browse = "<Leader>go",
}
})
1 change: 1 addition & 0 deletions config/nvim/after/plugin/gitsigns.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('gitsigns').setup {}
9 changes: 9 additions & 0 deletions config/nvim/after/plugin/lsp-colors.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
local status, colors = pcall(require, "lsp-colors")
if (not status) then return end

colors.setup {
Error = "#db4b4b",
Warning = "#e0af68",
Information = "#0db9d7",
Hint = "#10B981"
}
10 changes: 0 additions & 10 deletions config/nvim/after/plugin/lsp-colors.rc.vim

This file was deleted.

18 changes: 0 additions & 18 deletions config/nvim/after/plugin/lsp-installer.lua

This file was deleted.

Loading