summaryrefslogtreecommitdiff
path: root/neovim/lua/vimrc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'neovim/lua/vimrc.lua')
-rw-r--r--neovim/lua/vimrc.lua78
1 files changed, 0 insertions, 78 deletions
diff --git a/neovim/lua/vimrc.lua b/neovim/lua/vimrc.lua
index 3a90ad9..59ab863 100644
--- a/neovim/lua/vimrc.lua
+++ b/neovim/lua/vimrc.lua
@@ -2,84 +2,6 @@
local log_warning = require 'vimrc.utils'.log_warning
local M = {}
-M.cwd_save_session = function()
- vim.cmd([[
-augroup vimrc_save_session
- au!
- au VimLeave * mksession! ]] .. os.getenv("PWD") .. [[/Session.vim
-augroup end
- ]])
-end
-
-function M.setup_cmp()
- local cmp = require 'cmp'
- cmp.setup({
- snippet = {
- -- REQUIRED - you must specify a snippet engine
- expand = function(args)
- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.
- end,
- },
- completion = {
- autocomplete = false
- },
- window = {
- -- completion = cmp.config.window.bordered(),
- -- documentation = cmp.config.window.bordered(),
- },
- mapping = cmp.mapping.preset.insert({
- ['<C-b>'] = cmp.mapping.scroll_docs(-4),
- ['<C-f>'] = cmp.mapping.scroll_docs(4),
- ['<C-A>'] = cmp.mapping.complete(),
- ['<C-e>'] = cmp.mapping.abort(),
- ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
- }),
- sources = cmp.config.sources({
- { name = 'nvim_lsp' },
- { name = 'luasnip' },
- { name = 'path' },
- })
- })
-end
-
-function M.setup_treesitter()
- if vim.o.loadplugins == false then
- return
- end
-
- if vim.fn.exists(":TSInstall") == 1 then
- return vim.notify "TreeSitter is already configured."
- end
-
- -- vim.cmd([[packadd nvim-treesitter]])
- require 'nvim-treesitter.configs'.setup {
- highlight = {
- enable = true,
- -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
- -- Using this option may slow down your editor, and you may see some duplicate highlights.
- -- Instead of true it can also be a list of languages
- },
- rainbow = {
- enable = true,
- -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for
- extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean
- max_file_lines = nil, -- Do not enable for files with more than n lines, int
- -- colors = {}, -- table of hex strings
- -- termcolors = {} -- table of colour name strings
- },
-
- incremental_selection = {
- enable = true,
- },
- indent = {
- enable = false,
- disable = { "python", "yaml" },
- },
- }
- vim.cmd [[hi link TSParameter Todo]]
-end
-
function M.setup_rest_nvim()
require("rest-nvim").setup({
result_split_horizontal = true,