-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
31 lines (25 loc) · 894 Bytes
/
init.lua
File metadata and controls
31 lines (25 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- Common neovim settings applied always
require('common')
-- function to check if running in an external ide like VSCode, XCode, Android Studio, IntelliJ etc..
-- currently only checks if it is VSCode
local function isExternalIDE()
return vim.g.vscode
end
-- Check if running inside an IDE
if not isExternalIDE() then
-- Load full blown IDE features for Neovim like lsp, treesitter, telescope etc..
-- Stolen from Primeagen and then modified for users with lower brain power
require('nvim-ide')
end
if isExternalIDE() then
-- Load external IDE specific settings
-- these settings are for external IDEs
-- these usually help for modifying text in the IDE
-- for example: nvim-surround, nvim-comment etc..
require('external-ide')
end
-- Neovide specific settings
if vim.g.neovide then
-- Load Neovide specific settings
require('neovide')
end