Updated nvim for winbar and blink cmp
This commit is contained in:
parent
a5be4df3b9
commit
00b70e752e
|
|
@ -39,19 +39,33 @@ vim.pack.add({
|
|||
{ src = "https://github.com/stevearc/oil.nvim" },
|
||||
{ src = "https://github.com/akinsho/toggleterm.nvim" },
|
||||
{ src = "https://github.com/folke/trouble.nvim" },
|
||||
{ src = "https://github.com/saghen/blink.cmp" },
|
||||
{ src = "https://github.com/tribela/transparent.nvim" },
|
||||
{ src = "https://github.com/nvim-treesitter/nvim-treesitter", version = "master" },
|
||||
{ src = "https://github.com/Teatek/gdscript-extended-lsp.nvim" },
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme("kanagawa")
|
||||
|
||||
require('winbar').setup()
|
||||
require("trouble").setup()
|
||||
require("mini.pick").setup()
|
||||
require("mini.pairs").setup()
|
||||
require("mini.surround").setup()
|
||||
require('gdscript-extended-lsp').setup()
|
||||
require("oil").setup({ view_options = { show_hidden = true, } })
|
||||
require("toggleterm").setup({ open_mapping = [[<c-\>]], direction = "float" })
|
||||
require('winbar').setup()
|
||||
require('nvim-treesitter.configs').setup({ highlight = { enable = true, } })
|
||||
require('blink.cmp').setup({
|
||||
keymap = {
|
||||
preset = 'none',
|
||||
['<Tab>'] = { 'show', 'select_next', 'snippet_forward', 'fallback' },
|
||||
['<S-Tab>'] = { 'select_prev', 'snippet_backward', 'fallback' },
|
||||
['<CR>'] = { 'accept', 'fallback' },
|
||||
},
|
||||
completion = { documentation = { auto_show = false } },
|
||||
sources = { default = { 'path', 'buffer', 'lsp' }, },
|
||||
fuzzy = { implementation = "lua" }
|
||||
})
|
||||
vim.cmd.colorscheme("kanagawa")
|
||||
|
||||
---------------------------------------------------------------------------------
|
||||
-- [[ KEYMAPS ]]
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ function _G.get_winbar()
|
|||
|
||||
local config = mode_config[mode] or { label = mode, hl = 'WinBarNormal' }
|
||||
|
||||
local filepath = vim.fn.expand('%:p')
|
||||
local filepath = vim.fn.expand('%:t')
|
||||
local modified = vim.bo.modified and ' [*]' or ''
|
||||
local encoding = vim.bo.fileencoding ~= '' and vim.bo.fileencoding or vim.o.encoding
|
||||
local filesize = _G.get_filesize()
|
||||
|
|
@ -62,7 +62,7 @@ function _G.get_winbar()
|
|||
|
||||
-- Build the winbar string with encoding on right side first
|
||||
return string.format(
|
||||
'%%#%s# %s %%#WinBarFilepath# %s%%#WarningMsg#%s%%=%%#WinBarInfo# %s %s:%s [%s] %s',
|
||||
'%%#%s# %s %%#WinBarFilepath# filename: %s%%#WarningMsg#%s%%=%%#WinBarInfo# %s %s:%s [%s] %s',
|
||||
config.hl,
|
||||
config.label,
|
||||
filepath,
|
||||
|
|
|
|||
Loading…
Reference in New Issue