Re-add Neovim configuration files
Re-included from https://github.com/opdavies/opdavies.nvim.
This commit is contained in:
parent
634bf71c6e
commit
8244e157fd
48 changed files with 1864 additions and 97 deletions
8
config/neovim/after/ftplugin/gitcommit.lua
Normal file
8
config/neovim/after/ftplugin/gitcommit.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
vim.opt_local.colorcolumn = "50,72"
|
||||
vim.opt_local.spell = true
|
||||
vim.opt_local.textwidth = 72
|
||||
|
||||
-- autocmd FileType gitcommit highlight ColorColumn ctermbg=8
|
||||
-- filetype indent on
|
||||
-- filetype on
|
||||
-- filetype plugin on
|
4
config/neovim/after/ftplugin/markdown.lua
Normal file
4
config/neovim/after/ftplugin/markdown.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
-- TODO: Interim fix for https://github.com/nvim-treesitter/nvim-treesitter-context/issues/431.
|
||||
require("treesitter-context").disable()
|
||||
|
||||
vim.opt_local.wrap = true;
|
13
config/neovim/after/ftplugin/rst.lua
Normal file
13
config/neovim/after/ftplugin/rst.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
local opt = vim.opt_local
|
||||
|
||||
opt.spell = true
|
||||
opt.wrap = true
|
||||
|
||||
local cmp = require "cmp"
|
||||
local sources = cmp.get_config().sources
|
||||
|
||||
-- TODO: confirm these aren't aleady in the list of sources to avoid duplicate suggestions.
|
||||
table.insert(sources, { name = "buffer" })
|
||||
table.insert(sources, { name = "path" })
|
||||
|
||||
cmp.setup.buffer { sources = sources }
|
4
config/neovim/after/ftplugin/term.vim
Normal file
4
config/neovim/after/ftplugin/term.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
setlocal norelativenumber
|
||||
setlocal nonumber
|
||||
|
||||
setlocal scrolloff=0
|
Loading…
Add table
Add a link
Reference in a new issue