neovim changes
This commit is contained in:
parent
2d39fc923f
commit
12bf31273c
@ -1,8 +1,14 @@
|
||||
-- init.lua --
|
||||
|
||||
require('core.options')
|
||||
require('core.plugins')
|
||||
require('core.keymaps')
|
||||
-- general vim settings
|
||||
require('settings')
|
||||
|
||||
-- vim keymaps
|
||||
require('keymaps')
|
||||
|
||||
-- package manager (packer.nvim)
|
||||
require('plugins')
|
||||
|
||||
|
||||
require('plugin-config')
|
||||
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
-- plugin-config/init.lua
|
||||
|
||||
-- lsp
|
||||
require('plugin-config.lsp')
|
||||
|
||||
|
||||
@ -66,9 +66,7 @@ end
|
||||
require('fidget').setup()
|
||||
|
||||
|
||||
|
||||
-- lua lsp config
|
||||
|
||||
-- Make runtime files discoverable to the server
|
||||
local runtime_path = vim.split(package.path, ';')
|
||||
table.insert(runtime_path, 'lua/?.lua')
|
||||
@ -88,10 +86,9 @@ require('lspconfig').sumneko_lua.setup {
|
||||
diagnostics = {
|
||||
globals = { 'vim' },
|
||||
},
|
||||
workspace = { library = vim.api.nvim_get_runtime_file('', true) },
|
||||
workspace = { library = vim.api.nvim_get_runtime_file('', true), checkThirdParty = false, },
|
||||
-- Do not send telemetry data containing a randomized but unique identifier
|
||||
telemetry = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -5,7 +5,8 @@
|
||||
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
|
||||
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
|
||||
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
|
||||
vim.cmd [[packadd packer.nvim]]
|
||||
|
||||
vim.cmd('packadd packer.nvim')
|
||||
end
|
||||
|
||||
require('packer').startup(function(use)
|
||||
@ -45,7 +46,6 @@ require('packer').startup(function(use)
|
||||
tag = 'nightly'
|
||||
}
|
||||
|
||||
|
||||
-- * vanilla vim plugins * --
|
||||
|
||||
-- normal mode keybinds
|
||||
@ -2,6 +2,10 @@
|
||||
-- general settings
|
||||
--
|
||||
|
||||
-- vim cmds
|
||||
vim.cmd('syntax enable')
|
||||
vim.cmd('filetype plugin indent on')
|
||||
|
||||
-- encoding/format
|
||||
vim.opt.encoding = 'utf-8'
|
||||
vim.opt.fileformats = 'unix,dos,mac'
|
||||
@ -46,9 +50,3 @@ vim.opt.termguicolors = true
|
||||
vim.opt.number = true
|
||||
vim.opt.wrap = true
|
||||
vim.opt.listchars = {eol = '↲', tab = '▸ ', trail = '·'}
|
||||
|
||||
-- vim cmds
|
||||
vim.cmd [[
|
||||
syntax enable
|
||||
filetype plugin indent on
|
||||
]]
|
||||
Loading…
x
Reference in New Issue
Block a user