Update neovim dotfiles

This commit is contained in:
Uttarayan Mondal
2021-10-24 20:03:36 +05:30
parent c490689105
commit 3a3b8a2bb0
12 changed files with 324 additions and 90 deletions

View File

@@ -1,7 +1,3 @@
-- local vim = vim
require('plugins')
require('keymaps')
-- Need to replace this once lua api has vim modes
vim.api.nvim_exec([[
augroup Packer
@@ -21,10 +17,10 @@ augroup end
au BufNewFile,BufRead,BufReadPost *.html.tera set syntax=HTML
]], false)
vim.o.number = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.timeoutlen = 700
vim.o.guifont='Hasklug Nerd Font Mono,Hack Nerd Font,NotoEmoji Nerd Font'
vim.o.guifont='Hasklug Nerd Font Mono,Hack Nerd Font,NotoEmoji Nerd Font:h11'
vim.o.undodir=vim.fn.stdpath('cache')..'/undodir'
vim.o.undofile = true
@@ -55,7 +51,7 @@ vim.g.python_highlight_all = 1
vim.g.test = {
default = {
default = {
default = {
complete_items = { 'lsp', 'snippet' },
mode = 'file',
},
@@ -66,53 +62,20 @@ vim.g.test = {
}
-- Temp
vim.o.completeopt = 'menuone,noselect'
-- -- luasnip setup
-- local luasnip = require 'luasnip'
vim.g.coq_settings = {
auto_start = 'shut-up'
}
require('plugins')
require('keymaps')
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
highlight = {
enable = true, -- false will disable the whole extension
additional_vim_regex_highlighting = false,
},
}
-- -- nvim-cmp setup
-- local cmp = require 'cmp'
-- cmp.setup {
-- snippet = {
-- expand = function(args)
-- require('luasnip').lsp_expand(args.body)
-- end,
-- },
-- mapping = {
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<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,
-- },
-- ['<Tab>'] = function(fallback)
-- if cmp.visible() then
-- cmp.select_next_item()
-- elseif luasnip.expand_or_jumpable() then
-- luasnip.expand_or_jump()
-- else
-- fallback()
-- end
-- end,
-- ['<S-Tab>'] = function(fallback)
-- if cmp.visible() then
-- cmp.select_prev_item()
-- elseif luasnip.jumpable(-1) then
-- luasnip.jump(-1)
-- else
-- fallback()
-- end
-- end,
-- },
-- sources = {
-- { name = 'nvim_lsp' },
-- { name = 'luasnip' },
-- },
-- }