You've already forked dotfiles
fix: Initial pass through each neovim config section for formatting and
removing WSL
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
--
|
--
|
||||||
-- Created: 7/2/2012
|
-- Created: 7/2/2012
|
||||||
|
|
||||||
local vim = vim
|
-- local vim = vim
|
||||||
vim.loader.enable()
|
vim.loader.enable()
|
||||||
|
|
||||||
require('custom_functions')
|
require('custom_functions')
|
||||||
@@ -51,5 +51,4 @@ require('keymappings')
|
|||||||
require('settings')
|
require('settings')
|
||||||
require('autocmds')
|
require('autocmds')
|
||||||
require('lsp')
|
require('lsp')
|
||||||
require('wsl')
|
|
||||||
require('plugins')
|
require('plugins')
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ vim.api.nvim_create_autocmd({ 'BufReadPre' }, {
|
|||||||
local file_size = math.floor(0.5 + (stats.size / (1024 * 1024)))
|
local file_size = math.floor(0.5 + (stats.size / (1024 * 1024)))
|
||||||
|
|
||||||
if file_size > max_filesize_MiB then
|
if file_size > max_filesize_MiB then
|
||||||
-- print(string.format('Big file detected above %sMiB. Disabling syntax, treesitter, and folding.', max_filesize_MiB))
|
print(string.format('File detected above %sMiB. Disabling syntax, treesitter, and folding.', max_filesize_MiB))
|
||||||
vim.api.nvim_command('set foldmethod=manual')
|
vim.api.nvim_command('set foldmethod=manual')
|
||||||
vim.api.nvim_command('set noswapfile')
|
vim.api.nvim_command('set noswapfile')
|
||||||
vim.api.nvim_command('set noundofile')
|
vim.api.nvim_command('set noundofile')
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
local cf = require('custom_functions')
|
|
||||||
vim.g.mapleader = ','
|
vim.g.mapleader = ','
|
||||||
|
|
||||||
|
-- Expose custom functions for binding
|
||||||
|
local cf = require('custom_functions')
|
||||||
|
|
||||||
-- Standard keybinding options
|
-- Standard keybinding options
|
||||||
local options = { noremap = true }
|
local options = { noremap = true }
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
|
||||||
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
'git',
|
'git',
|
||||||
'clone',
|
'clone',
|
||||||
'--filter=blob:none',
|
'--filter=blob:none',
|
||||||
'https://github.com/folke/lazy.nvim.git',
|
'https://github.com/folke/lazy.nvim.git',
|
||||||
'--branch=stable',
|
'--branch=stable',
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require('lazy').setup({
|
require('lazy').setup({
|
||||||
require('plugins.lspconfig'), -- LSP configuration
|
require('plugins.lspconfig'), -- LSP configuration
|
||||||
require('plugins.mason'), -- LSP and DAP manager
|
require('plugins.mason'), -- LSP and DAP manager
|
||||||
require('plugins.gruvbox'), -- Colorscheme
|
require('plugins.gruvbox'), -- Colorscheme
|
||||||
require('plugins.comment'), -- Simple language specific commenting shortcuts
|
require('plugins.comment'), -- Simple language specific commenting shortcuts
|
||||||
require('plugins.dap'), -- DAP debugging plugin
|
require('plugins.dap'), -- DAP debugging plugin
|
||||||
require('plugins.dap-python'), -- Debug plugin settings specifically for python
|
require('plugins.dap-python'), -- Debug plugin settings specifically for python
|
||||||
require('plugins.treesitter'), -- Treesitter syntax highlighting and tree support
|
require('plugins.treesitter'), -- Treesitter syntax highlighting and tree support
|
||||||
require('plugins.gitsigns'), -- Gutter symbols for Git status and quick actions for Git operations
|
require('plugins.gitsigns'), -- Gutter symbols for Git status and quick actions for Git operations
|
||||||
require('plugins.luasnip'), -- Snippet enging
|
require('plugins.luasnip'), -- Snippet enging
|
||||||
require('plugins.nvim-cmp'), -- Autocompletion engine
|
require('plugins.nvim-cmp'), -- Autocompletion engine
|
||||||
require('plugins.lualine'), -- Status line
|
require('plugins.lualine'), -- Status line
|
||||||
require('plugins.telekasten'), -- Note taking setup
|
require('plugins.telekasten'), -- Note taking setup
|
||||||
require('plugins.telescope'), -- Floating windows for searching and other operations
|
require('plugins.telescope'), -- Floating windows for searching and other operations
|
||||||
'tpope/vim-surround', -- Change surrounding symbols
|
'tpope/vim-surround', -- Change surrounding symbols
|
||||||
require('plugins.floaterm'), -- Floating terminal
|
require('plugins.floaterm'), -- Floating terminal
|
||||||
require('plugins.vim-godot'), -- Godot specific bindings and debug
|
require('plugins.vim-godot'), -- Godot specific bindings and debug
|
||||||
require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser
|
require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser
|
||||||
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview)
|
||||||
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental)
|
||||||
require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code
|
require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
local wsl = os.getenv('WSL_DISTRO_NAME')
|
|
||||||
|
|
||||||
if wsl then
|
|
||||||
-- Do WSL specific things
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user