]>
git.madduck.net Git - etc/neovim.git/blobdiff - .config/nvim/init.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
vim.g.statedir = vim.fn.expand("~/.local/state/nvim/")
vim.g.statedir = vim.fn.expand("~/.local/state/nvim/")
-vim.g.mapleader = ';'
-vim.g.maplocalleader = ';'
+vim.g.mapleader = ";"
+vim.g.maplocalleader = ";"
vim.g.netrw_home = vim.g.statedir .. "netrw"
vim.g.netrw_home = vim.g.statedir .. "netrw"
-vim.cmd.runtime 'options.lua'
-vim.cmd.runtime 'keymaps.lua'
-vim.cmd.runtime 'style.vim'
-vim.cmd.runtime 'emojis.vim'
+vim.cmd.runtime("options.lua")
+vim.cmd.runtime("keymaps.lua")
+vim.cmd.runtime("style.vim")
+vim.cmd.runtime("emojis.vim")
-vim.cmd 'packadd! gnupg'
+vim.cmd("packadd! gnupg")
-local Plug = vim.fn['plug#' ]
+local Plug = vim.fn["plug#" ]
-- My preferred colour scheme
-- My preferred colour scheme
-Plug 'wimstefan/vim-artesanal'
+Plug("wimstefan/vim-artesanal")
-- Git operations from within files
-- Git operations from within files
-Plug 'tpope/vim-fugitive'
+Plug("tpope/vim-fugitive")
-- Detect tabstop and shiftwidth automatically
-- Detect tabstop and shiftwidth automatically
+Plug("tpope/vim-sleuth")
-- Markdown support, which requires tabular.
-- Markdown support, which requires tabular.
-Plug 'godlygeek/tabular'
-Plug 'preservim/vim-markdown'
+Plug("godlygeek/tabular")
+Plug("preservim/vim-markdown")
-- ExplainPattern to visualise/help with Vim regular expressions
-- ExplainPattern to visualise/help with Vim regular expressions
-Plug 'Houl/ExplainPattern-vim'
+Plug("Houl/ExplainPattern-vim")
-- Remember the last editing position
-- Remember the last editing position
-Plug 'farmergreg/vim-lastplace'
+Plug("farmergreg/vim-lastplace")
+Plug("neovim/nvim-lspconfig")
+Plug("dense-analysis/ale")
+
+vim.call("plug#end")
- return vim.g.plugs[plugin] ~= nil
+ return vim.g.plugs[plugin] ~= nil
- local ok, err = pcall(require, m)
- if not ok then return nil, err end
- return err
+ local ok, err = pcall(require, m)
+ if not ok then
+ return nil, err
+ end
+ return err