Browse Source

Support GUI

pull/14/head
Ptrzl 3 years ago
parent
commit
dfc4ddef13
  1. 3
      init.vim
  2. 2
      lua/configs/autocomplete.lua
  3. 8
      lua/core/init.lua

3
init.vim

@ -1 +1,4 @@
lua require('core.init')
set guifont=SFMono\ NERD\ Font:h16
set clipboard^=unnamed,unnamedplus

2
lua/configs/autocomplete.lua

@ -64,7 +64,7 @@ function M.config()
-- nvim-lspconfig config
-- List of all pre-configured LSP servers:
-- github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
local servers = { 'ccls', 'html', 'tsserver', 'rust_analyzer', 'bashls' }
local servers = { 'ccls', 'html', 'tsserver', 'rust_analyzer', 'bashls', 'pyright' }
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {
on_attach = on_attach

8
lua/core/init.lua

@ -8,14 +8,14 @@ vim.opt.shiftround = true
vim.opt.updatetime = 100
vim.opt.cursorline = true
vim.opt.autowrite = true
if vim.fn.has('termguicolors') then
if (vim.fn.has('termguicolors') == 1) then
vim.opt.termguicolors = true
end
-- tabs
vim.opt.autoindent = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.softtabstop = 2
vim.opt.expandtab = true
require("core.keymaps")

Loading…
Cancel
Save